| |
---|
| | @Path("/{uniqueID}") |
---|
| | // @Produces(MediaType.APPLICATION_JSON) |
---|
| | @Produces(MediaType.TEXT_PLAIN) |
---|
| | public String deleteAccount(@PathParam("uniqueID") String uniqueID) { |
---|
| | if (Accounts.getInstance().getAccountByuniqueID(uniqueID) != null) { |
---|
| | return JSON.encode(Accounts.getInstance().deleteAccount(uniqueID)); |
---|
| | } else { |
---|
| | throw new WebApplicationException(400); |
---|
| | } |
---|
| | return JSON.encode(Accounts.getInstance().deleteAccount(uniqueID)); |
---|
| | } |
---|
| | |
---|
| | @GET |
---|
| | // @Produces(MediaType.APPLICATION_JSON) |
---|
| |
---|
| | |