diff --git a/JerseyTest/.classpath b/JerseyTest/.classpath index 2729282..7678b85 100644 --- a/JerseyTest/.classpath +++ b/JerseyTest/.classpath @@ -1,5 +1,6 @@ + diff --git a/JerseyTest/src/main/java/jerseyTest/resources/AccountsRest.java b/JerseyTest/src/main/java/jerseyTest/resources/AccountsRest.java new file mode 100644 index 0000000..f7e29dd --- /dev/null +++ b/JerseyTest/src/main/java/jerseyTest/resources/AccountsRest.java @@ -0,0 +1,54 @@ +package jerseyTest.resources; + +import javax.ws.rs.*; +import javax.ws.rs.core.MediaType; + +@Path("/accounts") +public class AccountsRest { + @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) + public String createAccount(@FormParam("userID") String userID, @FormParam("userName") String userName, + @FormParam("userPass") String userPass) { + return null; + } + + @GET + @Path("/{uniqueID}") + // @Produces(MediaType.APPLICATION_JSON) + @Produces(MediaType.TEXT_PLAIN) + public String getAccount(@PathParam("uniqueID") String uniqueID) { + return null; + } + + @DELETE + @Path("/{uniqueID}") + // @Produces(MediaType.APPLICATION_JSON) + @Produces(MediaType.TEXT_PLAIN) + public String deleteAccount(@PathParam("uniqueID") String uniqueID) { + return null; + } + + @GET + // @Produces(MediaType.APPLICATION_JSON) + @Produces(MediaType.TEXT_PLAIN) + public String getAccounts() { + return null; + } + +}