Class RequirementAdministrationResource

java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.optional.educationrequirement.impl.resources.RequirementAdministrationResource
All Implemented Interfaces:
RestResource

@Path("/flows/RegistrationAdministration/{pk}") public class RequirementAdministrationResource extends AbstractRestResource
  • Constructor Details

    • RequirementAdministrationResource

      public RequirementAdministrationResource(Context context, RestSearchService restSearchService)
  • Method Details

    • getRequirements

      @GET @Path("/requirements") @Produces("application/json") public CollectionBean getRequirements(@PathParam("pk") String registrationPk)
      Parameters:
      registrationPk - the key of the registration to load from
      Returns:
      the collection bean filled with all Requirements found
    • countRequirements

      @GET @Path("/requirements/count") @Produces("application/json") public CountBean countRequirements(@PathParam("pk") String registrationPk)
      Parameters:
      registrationPk - the key of the registration to load from
      Returns:
      the count bean filled with all Requirements found