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
  • 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)