org.damap.base.rest.projects.MockProjectRestService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of base Show documentation
Show all versions of base Show documentation
A tool for machine actionable DMPs.
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();
}