Skip to content

Instantly share code, notes, and snippets.

@jeusdi
Created July 23, 2015 06:11
Show Gist options
  • Save jeusdi/56bba54643c509e81e31 to your computer and use it in GitHub Desktop.
Save jeusdi/56bba54643c509e81e31 to your computer and use it in GitHub Desktop.
Portion of Enpoint JAXRS swagger annotated interface
@PUT
@Path("{id}")
@ApiOperation(value = "Updates a given channel", responseHeaders = {
@ResponseHeader(name = "Location", description = "calls per hour allowed by the user", response = Integer.class)
}
)
@ApiResponses(value = {
@ApiResponse(code = 400, message = "Invalid channel information supplied")
})
public abstract Response update(
@ApiParam(value = "id", required = true) @NotNull @PathParam("id") String channel_id,
@ApiParam(value = "Channel", required = true) @NotNull ChannelDTO channel);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment