diff --git a/JerseyTest/src/main/java/jerseyTest/resources/AccountsRest.java b/JerseyTest/src/main/java/jerseyTest/resources/AccountsRest.java index f7e29dd..a97fa55 100644 --- a/JerseyTest/src/main/java/jerseyTest/resources/AccountsRest.java +++ b/JerseyTest/src/main/java/jerseyTest/resources/AccountsRest.java @@ -5,21 +5,20 @@ @Path("/accounts") public class AccountsRest { + @GET + // @Produces(MediaType.APPLICATION_JSON) + @Produces(MediaType.TEXT_PLAIN) + public String getAccounts() { + return null; + } + @PUT // @Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.TEXT_PLAIN) public String loginAccount(@FormParam("userID") String userID, @FormParam("userPass") String userPass) { return null; } - - @POST - @Path("/logout") - // @Produces(MediaType.APPLICATION_JSON) - @Produces(MediaType.TEXT_PLAIN) - public String logoutAccount(@FormParam("token") String token) { - return null; - } - + @POST // @Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.TEXT_PLAIN) @@ -44,11 +43,11 @@ return null; } - @GET + @POST + @Path("/logout") // @Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.TEXT_PLAIN) - public String getAccounts() { + public String logoutAccount(@FormParam("token") String token) { return null; } - }