Class ImportController
java.lang.Object
de.uniba.minf.core.rest.controller.BaseRestController<ImportPojo>
de.uniba.minf.registry.controller.ImportController
@RestController
@RequestMapping("/api/v1/imports")
public class ImportController
extends de.uniba.minf.core.rest.controller.BaseRestController<ImportPojo>
-
Field Summary
Fields inherited from class de.uniba.minf.core.rest.controller.BaseRestController
authInfoHelper, linksHelper, messageSource, objectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.uniba.minf.core.rest.model.RestItemResponsedeleteImport(String uniqueId, jakarta.servlet.http.HttpServletRequest request, Locale locale) de.uniba.minf.core.rest.model.RestItemsResponsegetAllImports(jakarta.servlet.http.HttpServletRequest request, 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
-
Constructor Details
-
ImportController
public ImportController()
-
-
Method Details
-
getAllImports
@GetMapping public de.uniba.minf.core.rest.model.RestItemsResponse getAllImports(jakarta.servlet.http.HttpServletRequest request, Locale locale) throws de.uniba.minf.core.rest.exception.ApiInsufficientPermissionsException, de.uniba.minf.core.rest.exception.ApiItemNotFoundException - Throws:
de.uniba.minf.core.rest.exception.ApiInsufficientPermissionsExceptionde.uniba.minf.core.rest.exception.ApiItemNotFoundException
-
deleteImport
@DeleteMapping("/{uniqueId}") public de.uniba.minf.core.rest.model.RestItemResponse deleteImport(@PathVariable("uniqueId") String uniqueId, jakarta.servlet.http.HttpServletRequest request, Locale locale) throws de.uniba.minf.core.rest.exception.ApiInsufficientPermissionsException, de.uniba.minf.core.rest.exception.ApiItemNotFoundException - Throws:
de.uniba.minf.core.rest.exception.ApiInsufficientPermissionsExceptionde.uniba.minf.core.rest.exception.ApiItemNotFoundException
-