@RequestScoped @DeclareRoles(value={"admin","ViewBalance","Debtor","Creditor"}) @Path(value="/") public class SecureWalletEndpoint extends Object
| Constructor and Description |
|---|
SecureWalletEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
credit(String amount) |
javax.ws.rs.core.Response |
debit(String amount) |
javax.json.JsonObject |
getBalance() |
@GET @Path(value="/balance") @Produces(value="application/json") @RolesAllowed(value={"admin","ViewBalance","Debtor"}) public javax.json.JsonObject getBalance()
@GET @Path(value="/debit") @Produces(value="application/json") @RolesAllowed(value={"admin","Debtor"}) public javax.ws.rs.core.Response debit(@QueryParam(value="amount") String amount)
@GET @Path(value="/credit") @Produces(value="application/json") @RolesAllowed(value={"admin","Creditor"}) public javax.ws.rs.core.Response credit(@QueryParam(value="amount") String amount)
Copyright © 2007–2020 WSO2. All rights reserved.