Class GivennamesAPIController
java.lang.Object
de.digitalcollections.commons.springmvc.controller.AbstractController
de.digitalcollections.cudami.admin.controller.AbstractPagingAndSortingController
de.digitalcollections.cudami.admin.controller.AbstractUniqueObjectController<I>
de.digitalcollections.cudami.admin.controller.identifiable.AbstractIdentifiablesController<de.digitalcollections.model.identifiable.agent.GivenName,CudamiGivenNamesClient>
de.digitalcollections.cudami.admin.controller.identifiable.entity.agent.GivennamesAPIController
@RestController
public class GivennamesAPIController
extends AbstractIdentifiablesController<de.digitalcollections.model.identifiable.agent.GivenName,CudamiGivenNamesClient>
Controller for all public "GivenName" endpoints (API).
-
Field Summary
Fields inherited from class de.digitalcollections.cudami.admin.controller.AbstractUniqueObjectController
service
Fields inherited from class de.digitalcollections.cudami.admin.controller.AbstractPagingAndSortingController
languageService
-
Constructor Summary
ConstructorDescriptionGivennamesAPIController
(CudamiClient client, LanguageService languageService) -
Method Summary
Modifier and TypeMethodDescriptionde.digitalcollections.model.identifiable.agent.GivenName
create()
BTResponse<de.digitalcollections.model.identifiable.agent.GivenName>
find
(int offset, int limit, String searchTerm, String sortProperty, String sortOrder, String dataLanguage) de.digitalcollections.model.identifiable.agent.GivenName
org.springframework.http.ResponseEntity
save
(de.digitalcollections.model.identifiable.agent.GivenName givenName) org.springframework.http.ResponseEntity
Methods inherited from class de.digitalcollections.cudami.admin.controller.identifiable.AbstractIdentifiablesController
doForward, getExistingLanguagesFromIdentifiable, getExistingLanguagesFromIdentifiables, getExistingLanguagesFromService, search
Methods inherited from class de.digitalcollections.cudami.admin.controller.AbstractUniqueObjectController
find
Methods inherited from class de.digitalcollections.cudami.admin.controller.AbstractPagingAndSortingController
createBTRequest, createPageRequest, createPageRequest, getDataLanguage, getDataLanguage, getFieldType
Methods inherited from class de.digitalcollections.commons.springmvc.controller.AbstractController
verifyBinding
-
Constructor Details
-
GivennamesAPIController
-
-
Method Details
-
create
@GetMapping("/api/givennames/new") @ResponseBody public de.digitalcollections.model.identifiable.agent.GivenName create() throws de.digitalcollections.model.exception.TechnicalException- Throws:
de.digitalcollections.model.exception.TechnicalException
-
find
@GetMapping("/api/givennames") @ResponseBody public BTResponse<de.digitalcollections.model.identifiable.agent.GivenName> find(@RequestParam(name="offset",required=false,defaultValue="0") int offset, @RequestParam(name="limit",required=false,defaultValue="10") int limit, @RequestParam(name="search",required=false) String searchTerm, @RequestParam(name="sort",required=false,defaultValue="label") String sortProperty, @RequestParam(name="order",required=false,defaultValue="asc") String sortOrder, @RequestParam(name="dataLanguage",required=false) String dataLanguage) throws de.digitalcollections.model.exception.TechnicalException, ServiceException - Throws:
de.digitalcollections.model.exception.TechnicalException
ServiceException
-
getByUuid
@GetMapping("/api/givennames/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}") @ResponseBody public de.digitalcollections.model.identifiable.agent.GivenName getByUuid(@PathVariable UUID uuid) throws de.digitalcollections.model.exception.TechnicalException - Throws:
de.digitalcollections.model.exception.TechnicalException
-
save
@PostMapping("/api/givennames") public org.springframework.http.ResponseEntity save(@RequestBody de.digitalcollections.model.identifiable.agent.GivenName givenName) -
update
@PutMapping("/api/givennames/{uuid:^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$}") public org.springframework.http.ResponseEntity update(@PathVariable UUID uuid, @RequestBody de.digitalcollections.model.identifiable.agent.GivenName givenName)
-