Class StaffApiResource

java.lang.Object
org.apache.fineract.organisation.staff.api.StaffApiResource

@Path("/v1/staff") @Component public class StaffApiResource extends Object
  • Constructor Details

    • StaffApiResource

      public StaffApiResource()
  • Method Details

    • retrieveAll

      @GET @Consumes("application/json") @Produces("application/json") public List<org.apache.fineract.organisation.staff.data.StaffData> retrieveAll(@QueryParam("officeId") Long officeId, @DefaultValue("false") @QueryParam("staffInOfficeHierarchy") boolean staffInOfficeHierarchy, @DefaultValue("false") @QueryParam("loanOfficersOnly") boolean loanOfficersOnly, @DefaultValue("active") @QueryParam("status") String status)
    • create

      @POST @Consumes("application/json") @Produces("application/json") public org.apache.fineract.infrastructure.core.data.CommandProcessingResult create(StaffRequest staffRequest)
    • retrieveOne

      @GET @Path("{staffId}") @Consumes("application/json") @Produces("application/json") public org.apache.fineract.organisation.staff.data.StaffData retrieveOne(@PathParam("staffId") Long staffId, @Context jakarta.ws.rs.core.UriInfo uriInfo)
    • update

      @PUT @Path("{staffId}") @Consumes("application/json") @Produces("application/json") public org.apache.fineract.infrastructure.core.data.CommandProcessingResult update(@PathParam("staffId") Long staffId, StaffRequest staffRequest)
    • getTemplate

      @GET @Path("downloadtemplate") @Produces("application/vnd.ms-excel") public jakarta.ws.rs.core.Response getTemplate(@QueryParam("officeId") Long officeId, @QueryParam("dateFormat") String dateFormat)
    • postTemplate

      @POST @Path("uploadtemplate") @Consumes("multipart/form-data") public Long postTemplate(InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String locale, String dateFormat)