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

Commit a21ec60

Browse files
authored
Merge pull request #261 from tmack8001/content-type
updating Resources to have application/json content-type
2 parents 6869a54 + 700a81b commit a21ec60

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/main/java/com/netflix/simianarmy/resources/chaos/ChaosMonkeyResource.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
import javax.ws.rs.GET;
2929
import javax.ws.rs.POST;
3030
import javax.ws.rs.Path;
31+
import javax.ws.rs.Produces;
3132
import javax.ws.rs.core.Context;
33+
import javax.ws.rs.core.MediaType;
3234
import javax.ws.rs.core.Response;
3335
import javax.ws.rs.core.UriInfo;
3436

@@ -58,6 +60,7 @@
5860
* The Class ChaosMonkeyResource for json REST apis.
5961
*/
6062
@Path("/v1/chaos")
63+
@Produces(MediaType.APPLICATION_JSON)
6164
@Singleton
6265
public class ChaosMonkeyResource {
6366

src/main/java/com/netflix/simianarmy/resources/janitor/JanitorMonkeyResource.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@
2424
import javax.ws.rs.GET;
2525
import javax.ws.rs.POST;
2626
import javax.ws.rs.Path;
27+
import javax.ws.rs.Produces;
2728
import javax.ws.rs.QueryParam;
2829
import javax.ws.rs.core.Context;
30+
import javax.ws.rs.core.MediaType;
2931
import javax.ws.rs.core.Response;
3032
import javax.ws.rs.core.UriInfo;
3133

@@ -46,6 +48,7 @@
4648
* The Class JanitorMonkeyResource for json REST apis.
4749
*/
4850
@Path("/v1/janitor")
51+
@Produces(MediaType.APPLICATION_JSON)
4952
public class JanitorMonkeyResource {
5053

5154
/** The Constant JSON_FACTORY. */

0 commit comments

Comments
 (0)