Seitenhistorie
...
Codeblock |
---|
@Path("/user") public class UserService { @GET public List<UserRVO> getUserList(@PathParam("username") String username) throws CommonBusinessException { ... } @POST public UserRVO createUser(UserRVO userRVO) throws CommonBusinessException { ... } @GET @Path("/{username}") public UserRVO getUser(@PathParam("username") String username) throws CommonBusinessException { ... } @PUT @Path("/{username}") public UserRVO updateUser(@PathParam("username") String username, UserRVO userRVO) throws CommonBusinessException { ... } @DELETE @Path("/{username}") public UserRVO deleteUser(@PathParam("username") String username) throws CommonBusinessException { ... } @PUT @Path("/{username}/password") public Response setPassword(@PathParam("username") String username, PasswordChangeRVO passwordChange) { ... } } |
Überblick
Inhalte