Package org.dspace.app.rest
Class EntityTypeLabelRestController
java.lang.Object
org.dspace.app.rest.EntityTypeLabelRestController
@RestController
@RequestMapping("/api/core/entitytypes")
public class EntityTypeLabelRestController
extends Object
This controller will handle all the incoming calls on the /api/core/entitytypes/label/<:entity-type-label> endpoint
where the entity-type-label parameter can be filled in to match a specific entityType by label
There's always at most one entity type per label.
It responds with:
The single entity type if there's a match 404 if the entity type doesn't exist
- Author:
- Maria Verdonck (Atmire) on 2019-12-13
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ConverterServiceprotected final EntityTypeServiceprotected Utils -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
entityTypeService
-
converter
-
utils
-
-
Constructor Details
-
EntityTypeLabelRestController
public EntityTypeLabelRestController()
-
-
Method Details
-
get
@GetMapping("/label/{entity-type-label}") public EntityTypeResource get(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @PathVariable("entity-type-label") String label)
-