diff --git a/src/main/java/org/ntlab/nemophila/resources/accounts/AccountPostsRest.java b/src/main/java/org/ntlab/nemophila/resources/accounts/AccountPostsRest.java index 460f40d..a3064fd 100644 --- a/src/main/java/org/ntlab/nemophila/resources/accounts/AccountPostsRest.java +++ b/src/main/java/org/ntlab/nemophila/resources/accounts/AccountPostsRest.java @@ -1,16 +1,26 @@ package org.ntlab.nemophila.resources.accounts; import org.springframework.stereotype.Component; -import javax.ws.rs.GET; -import javax.ws.rs.Path; -import javax.ws.rs.PathParam; + +import javax.ws.rs.*; +import javax.ws.rs.core.MediaType; @Component @Path("/accounts") public class AccountPostsRest { + @POST + @Path("/{uid}/posts") + @Produces(MediaType.APPLICATION_JSON) + public String postAccountPosts(@PathParam("uid") String uid, @FormParam("token") String token, @FormParam("genre") String genre, + @FormParam("image1") String img1, @FormParam("image2") String img2, @FormParam("image3") String img3, + @FormParam("rate") int rate, @FormParam("comment") String comme, @FormParam("sid") String sid){ + return null; + } + @GET @Path("/{uid}/posts") + @Produces(MediaType.APPLICATION_JSON) public String getAccountPosts(@PathParam("uid") String uid){ return null; }