Interface ProjectRestApi
-
- All Known Implementing Classes:
ProjectController
@RestController @RequestMapping(path="/v1", produces={"application/hal+json","application/json"}) public interface ProjectRestApiController forProjectresources.
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTACHMENT_API_PARAM_DESCRstatic StringCOPY_PROJECT_ID_PARAM_DESCRstatic StringCREATE_PROJECT_PARAM_DESCRstatic StringDELETE_PROJECT_ID_PARAM_DESCRstatic StringEXPORT_AS_ATTACHMENT_PARAM_NAMEstatic StringEXPORT_PROJECT_ID_PARAM_DESCRstatic StringGET_PROJECT_ID_PARAM_DESCRstatic StringIMPORT_PROJECT_FILE_PARAM_DESCRstatic StringPROJECT_FILTERS_PARAM_DESCRstatic StringPROJECT_FILTERS_PARAM_NAMEstatic StringPROJECT_NAME_COPY_DESCRstatic StringPROJECT_NAME_OVERRIDE_DESCRstatic StringPROJECT_NAME_PARAM_DESCRstatic StringPROJECT_NAME_PARAM_NAMEstatic StringPROJECTSstatic StringUPDATE_PROJECT_ID_PARAM_DESCRstatic StringUPDATE_PROJECT_PARAM_DESCRstatic StringUPLOAD_FILE_PARAM_NAMEstatic StringVALIDATE_PROJECT_ID_PARAM_DESCR
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.hateoas.EntityModel<Project>copyProject(String projectId, String name)org.springframework.hateoas.EntityModel<Project>createProject(Project project)voiddeleteProject(String projectId)voidexportProject(javax.servlet.http.HttpServletResponse response, String projectId, boolean attachment)org.springframework.hateoas.EntityModel<Project>getProject(String projectId)org.springframework.hateoas.PagedModel<org.springframework.hateoas.EntityModel<Project>>getProjects(org.springframework.data.domain.Pageable pageable, String name, List<String> filters)org.springframework.hateoas.EntityModel<Project>importProject(org.springframework.web.multipart.MultipartFile file, String name)org.springframework.hateoas.EntityModel<Project>updateProject(String projectId, Project project)voidvalidateProject(String projectId)
-
-
-
Field Detail
-
PROJECTS
static final String PROJECTS
- See Also:
- Constant Field Values
-
GET_PROJECT_ID_PARAM_DESCR
static final String GET_PROJECT_ID_PARAM_DESCR
- See Also:
- Constant Field Values
-
CREATE_PROJECT_PARAM_DESCR
static final String CREATE_PROJECT_PARAM_DESCR
- See Also:
- Constant Field Values
-
UPDATE_PROJECT_ID_PARAM_DESCR
static final String UPDATE_PROJECT_ID_PARAM_DESCR
- See Also:
- Constant Field Values
-
UPDATE_PROJECT_PARAM_DESCR
static final String UPDATE_PROJECT_PARAM_DESCR
- See Also:
- Constant Field Values
-
DELETE_PROJECT_ID_PARAM_DESCR
static final String DELETE_PROJECT_ID_PARAM_DESCR
- See Also:
- Constant Field Values
-
IMPORT_PROJECT_FILE_PARAM_DESCR
static final String IMPORT_PROJECT_FILE_PARAM_DESCR
- See Also:
- Constant Field Values
-
EXPORT_PROJECT_ID_PARAM_DESCR
static final String EXPORT_PROJECT_ID_PARAM_DESCR
- See Also:
- Constant Field Values
-
COPY_PROJECT_ID_PARAM_DESCR
static final String COPY_PROJECT_ID_PARAM_DESCR
- See Also:
- Constant Field Values
-
VALIDATE_PROJECT_ID_PARAM_DESCR
static final String VALIDATE_PROJECT_ID_PARAM_DESCR
- See Also:
- Constant Field Values
-
ATTACHMENT_API_PARAM_DESCR
static final String ATTACHMENT_API_PARAM_DESCR
- See Also:
- Constant Field Values
-
PROJECT_NAME_PARAM_DESCR
static final String PROJECT_NAME_PARAM_DESCR
- See Also:
- Constant Field Values
-
PROJECT_NAME_OVERRIDE_DESCR
static final String PROJECT_NAME_OVERRIDE_DESCR
- See Also:
- Constant Field Values
-
PROJECT_NAME_COPY_DESCR
static final String PROJECT_NAME_COPY_DESCR
- See Also:
- Constant Field Values
-
PROJECT_FILTERS_PARAM_DESCR
static final String PROJECT_FILTERS_PARAM_DESCR
- See Also:
- Constant Field Values
-
UPLOAD_FILE_PARAM_NAME
static final String UPLOAD_FILE_PARAM_NAME
- See Also:
- Constant Field Values
-
EXPORT_AS_ATTACHMENT_PARAM_NAME
static final String EXPORT_AS_ATTACHMENT_PARAM_NAME
- See Also:
- Constant Field Values
-
PROJECT_NAME_PARAM_NAME
static final String PROJECT_NAME_PARAM_NAME
- See Also:
- Constant Field Values
-
PROJECT_FILTERS_PARAM_NAME
static final String PROJECT_FILTERS_PARAM_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getProjects
@GetMapping(path="/projects") org.springframework.hateoas.PagedModel<org.springframework.hateoas.EntityModel<Project>> getProjects(org.springframework.data.domain.Pageable pageable, @RequestParam(name="name",required=false) String name, @RequestParam(name="filters",required=false) List<String> filters)
-
createProject
@PostMapping(path="/projects") @ResponseStatus(CREATED) org.springframework.hateoas.EntityModel<Project> createProject(@RequestBody Project project)
-
getProject
@GetMapping(path="/projects/{projectId}") org.springframework.hateoas.EntityModel<Project> getProject(@PathVariable String projectId)
-
updateProject
@PutMapping(path="/projects/{projectId}") org.springframework.hateoas.EntityModel<Project> updateProject(@PathVariable String projectId, @RequestBody Project project)
-
deleteProject
@DeleteMapping(path="/projects/{projectId}") @ResponseStatus(NO_CONTENT) void deleteProject(@PathVariable String projectId)
-
importProject
@PostMapping(path="/projects/import", consumes="multipart/form-data") @ResponseStatus(CREATED) org.springframework.hateoas.EntityModel<Project> importProject(@RequestPart("file") org.springframework.web.multipart.MultipartFile file, @RequestParam(name="name",required=false) String name) throws IOException- Throws:
IOException
-
exportProject
@GetMapping(path="/projects/{projectId}/export") void exportProject(javax.servlet.http.HttpServletResponse response, @PathVariable String projectId, @RequestParam(name="attachment",required=false,defaultValue="true") boolean attachment) throws IOException- Throws:
IOException
-
copyProject
@PostMapping(path="/projects/{projectId}/copy") org.springframework.hateoas.EntityModel<Project> copyProject(@PathVariable String projectId, @RequestParam(name="name") String name)
-
validateProject
@GetMapping(path="/projects/{projectId}/validate") void validateProject(@PathVariable String projectId) throws IOException- Throws:
IOException
-
-