Created
February 17, 2016 19:31
-
-
Save Pacane/c6666700a65f74ab56da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Path(ApiPaths.USERS) | |
@Consumes(APPLICATION_JSON) | |
@Produces(APPLICATION_JSON) | |
public interface UserApi { | |
@GET | |
List<User> getUsers(); | |
@DELETE | |
@Path(ApiPaths.PATH_ID) | |
List<User> delete(@PathParam(ApiParameters.ID) int userId); | |
@GET | |
@Path(ApiPaths.PATH_ID) | |
User getUser(@PathParam(ApiParameters.ID) int userId); | |
@PUT | |
@Path(ApiPaths.PATH_ID) | |
void saveUser(@PathParam(ApiParameters.ID) int userId, User user); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment