Class VocabularyDefinitionController
java.lang.Object
de.uniba.minf.core.rest.controller.BaseRestController
de.uniba.minf.registry.controller.VocabularyDefinitionController
@RestController
@RequestMapping("/api/v1/def/vocabularies")
public class VocabularyDefinitionController
extends de.uniba.minf.core.rest.controller.BaseRestController
-
Field Summary
Fields inherited from class de.uniba.minf.core.rest.controller.BaseRestController
authInfoHelper, linksHelper, messageSource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.uniba.minf.core.rest.model.RestItemsResponsevoidvoidMethods inherited from class de.uniba.minf.core.rest.controller.BaseRestController
getActualLimit, getBaseUrl, getControllerBaseUrl, getControllerBaseUrlWithSuffix, getItem, getItemLinks, getItemLinks, getItemResponse, getItems, getLinks, getLinks, handleBindException, handleException, handleRuntimeException
-
Constructor Details
-
VocabularyDefinitionController
public VocabularyDefinitionController()
-
-
Method Details
-
postYaml
@PostMapping(consumes={"application/x-yaml","text/yaml"}) public void postYaml(@RequestBody String updatedApi, Locale locale) throws com.fasterxml.jackson.databind.JsonMappingException, com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.databind.JsonMappingExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
postJson
@PostMapping(consumes="application/json") public void postJson(@RequestBody String updatedApi, Locale locale) throws com.fasterxml.jackson.databind.JsonMappingException, com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.databind.JsonMappingExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
get
@GetMapping public de.uniba.minf.core.rest.model.RestItemsResponse get(jakarta.servlet.http.HttpServletRequest request, Locale locale) -
get
@GetMapping("{id}") public VocabularyDefinitionPojo get(@PathVariable("id") String id, Locale locale) -
getByName
@GetMapping("/by-name/{name}") public VocabularyDefinitionPojo getByName(@PathVariable("name") String name, Locale locale)
-