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 Details

  • Constructor Details

    • EntityTypeLabelRestController

      public EntityTypeLabelRestController()
  • Method Details

    • 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)