Class EntityDefinitionController

java.lang.Object
de.uniba.minf.core.rest.controller.BaseRestController<EntityDefinitionPojo>
de.uniba.minf.registry.controller.EntityDefinitionController

@RestController @RequestMapping("/api/v1/def/entities") public class EntityDefinitionController extends de.uniba.minf.core.rest.controller.BaseRestController<EntityDefinitionPojo>
  • 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
    void
    deleteByName(String name, Locale locale)
     
    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
    post(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

    • EntityDefinitionController

      public EntityDefinitionController()
  • Method Details

    • post

      @PostMapping(consumes={"application/x-yaml","text/yaml"}) public void post(@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 EntityDefinitionPojo get(@PathVariable("id") String id, Locale locale)
    • getByName

      @GetMapping("/by-name/{name}") public Collection<EntityDefinitionPojo> getByName(@PathVariable("name") String name, Locale locale)
    • deleteByName

      @DeleteMapping("/by-name/{name}") public void deleteByName(@PathVariable("name") String name, Locale locale)