Package org.dspace.app.rest
Class EntityTypeLabelRestController
- java.lang.Object
-
- org.dspace.app.rest.EntityTypeLabelRestController
-
@RestController @RequestMapping("/api/core/entitytypes") public class EntityTypeLabelRestController extends ObjectThis 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
Fields Modifier and Type Field Description protected ConverterServiceconverterprotected org.dspace.content.service.EntityTypeServiceentityTypeServiceprotected Utilsutils
-
Constructor Summary
Constructors Constructor Description EntityTypeLabelRestController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityTypeResourceget(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String label)
-
-
-
Field Detail
-
entityTypeService
protected final org.dspace.content.service.EntityTypeService entityTypeService
-
converter
@Autowired protected ConverterService converter
-
utils
@Autowired protected Utils utils
-
-
Method Detail
-
get
@GetMapping("/label/{entity-type-label}") public EntityTypeResource get(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, @PathVariable("entity-type-label") String label)
-
-