Class 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 Detail

      • entityTypeService

        protected final org.dspace.content.service.EntityTypeService entityTypeService
      • utils

        @Autowired
        protected Utils utils
    • Constructor Detail

      • EntityTypeLabelRestController

        public EntityTypeLabelRestController()
    • 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)