@Path("/v1/accounts/{type}")
@Component
public class AccountsApiResource
extends Object
-
Constructor Summary
Constructors
-
Method Summary
jakarta.ws.rs.core.Response
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AccountsApiResource
public AccountsApiResource()
-
Method Details
-
template
@GET
@Path("template")
@Consumes("application/json")
@Produces("application/json")
public String template(@PathParam("type")
String accountType,
@QueryParam("clientId")
Long clientId,
@QueryParam("productId")
Long productId,
@Context
jakarta.ws.rs.core.UriInfo uriInfo)
-
retrieveAccount
@GET
@Path("{accountId}")
@Consumes("application/json")
@Produces("application/json")
public String 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 String retrieveAllAccounts(@PathParam("type")
String accountType,
@QueryParam("offset")
Integer offset,
@QueryParam("limit")
Integer limit,
@Context
jakarta.ws.rs.core.UriInfo uriInfo)
-
createAccount
@POST
@Consumes("application/json")
@Produces("application/json")
public String createAccount(@PathParam("type")
String accountType,
String apiRequestBodyAsJson)
-
handleCommands
@POST
@Path("{accountId}")
@Consumes("application/json")
@Produces("application/json")
public String 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 String updateAccount(@PathParam("type")
String accountType,
@PathParam("accountId")
Long accountId,
String apiRequestBodyAsJson)
-
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 String postSharedAccountsTemplate(InputStream uploadedInputStream,
org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail,
String locale,
String dateFormat,
@PathParam("type")
String accountType)