Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #261 from tmack8001/content-type
Browse files Browse the repository at this point in the history
updating Resources to have application/json content-type
  • Loading branch information
ebukoski authored Jun 13, 2016
2 parents 6869a54 + 700a81b commit a21ec60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.UriInfo;

Expand Down Expand Up @@ -58,6 +60,7 @@
* The Class ChaosMonkeyResource for json REST apis.
*/
@Path("/v1/chaos")
@Produces(MediaType.APPLICATION_JSON)
@Singleton
public class ChaosMonkeyResource {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.UriInfo;

Expand All @@ -46,6 +48,7 @@
* The Class JanitorMonkeyResource for json REST apis.
*/
@Path("/v1/janitor")
@Produces(MediaType.APPLICATION_JSON)
public class JanitorMonkeyResource {

/** The Constant JSON_FACTORY. */
Expand Down

0 comments on commit a21ec60

Please sign in to comment.