Class VocabularyDefinitionController

java.lang.Object
de.uniba.minf.core.rest.controller.BaseRestController<VocabularyDefinitionPojo>
de.uniba.minf.registry.controller.VocabularyDefinitionController

@RestController @RequestMapping("/api/v1/def/vocabularies") public class VocabularyDefinitionController extends de.uniba.minf.core.rest.controller.BaseRestController<VocabularyDefinitionPojo>
  • Field Summary

    Fields inherited from class de.uniba.minf.core.rest.controller.BaseRestController

    authInfoHelper, linksHelper, messageSource, objectMapper
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    de.uniba.minf.core.rest.model.RestItemsResponse
    get(jakarta.servlet.http.HttpServletRequest request, Locale locale)
     
    get(String id, Locale locale)
     
    getByName(String name, Locale locale)
     
    void
    postJson(String updatedApi, Locale locale)
     
    void
    postYaml(String updatedApi, Locale locale)
     

    Methods inherited from class de.uniba.minf.core.rest.controller.BaseRestController

    getActualLimit, getBaseUrl, getControllerBaseUrl, getControllerBaseUrlWithSuffix, getItem, getItem, getItemLinks, getItemLinks, getItemResponse, getItems, getLinks, getLinks, handleBindException, handleException, handleRuntimeException, setLinksOnSubitem, setLinksOnSubitem, setLinksOnSubitems, setLinksOnSubitems

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.JsonMappingException
      com.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.JsonMappingException
      com.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)