All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.damap.base.rest.projects.MockProjectRestService Maven / Gradle / Ivy

The newest version!
package org.damap.base.rest.projects;

import jakarta.ws.rs.DefaultValue;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.QueryParam;
import jakarta.ws.rs.core.MediaType;
import java.util.List;
import org.damap.base.rest.dmp.domain.ProjectDO;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;

/** MockProjectRestService interface. */
@Path("")
@RegisterRestClient(configKey = "rest.projects")
@Produces(MediaType.APPLICATION_JSON)
public interface MockProjectRestService {

  /**
   * getProjectDetails.
   *
   * @param uniId a {@link java.lang.String} object
   * @return a {@link java.util.List} object
   */
  @GET
  @Path("/projects")
  List getProjectDetails(@QueryParam("universityId") String uniId);

  /**
   * getProjectList.
   *
   * @param query a {@link java.lang.String} object
   * @return a {@link java.util.List} object
   */
  @GET
  @Path("/projects")
  List getProjectList(@QueryParam("q") String query);

  /**
   * getRecommended.
   *
   * @param description a {@link java.lang.String} object
   * @return a {@link java.util.List} object
   */
  @GET
  @Path("/projects")
  List getRecommended(
      @QueryParam("description_like") @DefaultValue("recommend") String description);

  /**
   * getProjectSupplement.
   *
   * @return a {@link org.damap.base.rest.projects.ProjectSupplementDO} object
   */
  @GET
  @Path("/project-supplement")
  ProjectSupplementDO getProjectSupplement();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy