Class AccountsApiResource

java.lang.Object
org.apache.fineract.portfolio.accounts.api.AccountsApiResource

@Path("/v1/accounts/{type}") @Component public class AccountsApiResource extends Object
  • Constructor Details

    • AccountsApiResource

      public AccountsApiResource()
  • Method Details

    • template

      @GET @Path("template") @Consumes("application/json") @Produces("application/json") public ShareAccountData template(@PathParam("type") String accountType, @QueryParam("clientId") Long clientId, @QueryParam("productId") Long productId)
    • retrieveAccount

      @GET @Path("{accountId}") @Consumes("application/json") @Produces("application/json") public ShareAccountData retrieveAccount(@PathParam("accountId") Long accountId, @PathParam("type") String accountType, @Context jakarta.ws.rs.core.UriInfo uriInfo)
    • retrieveAllAccounts

      @GET @Consumes("application/json") @Produces("application/json") public org.apache.fineract.infrastructure.core.service.Page<AccountData> retrieveAllAccounts(@PathParam("type") String accountType, @QueryParam("offset") Integer offset, @QueryParam("limit") Integer limit)
    • createAccount

      @POST @Consumes("application/json") @Produces("application/json") public org.apache.fineract.infrastructure.core.data.CommandProcessingResult createAccount(@PathParam("type") String accountType, AccountRequest accountRequest)
    • handleCommands

      @POST @Path("{accountId}") @Consumes("application/json") @Produces("application/json") public org.apache.fineract.infrastructure.core.data.CommandProcessingResult handleCommands(@PathParam("type") String accountType, @PathParam("accountId") Long accountId, @QueryParam("command") String commandParam, String apiRequestBodyAsJson)
    • updateAccount

      @PUT @Path("{accountId}") @Consumes("application/json") @Produces("application/json") public org.apache.fineract.infrastructure.core.data.CommandProcessingResult updateAccount(@PathParam("type") String accountType, @PathParam("accountId") Long accountId, AccountRequest accountRequest)
    • getSharedAccountsTemplate

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

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