Skip to content

Commit

Permalink
swagger-api#1424 forgot to add this test resource file
Browse files Browse the repository at this point in the history
  • Loading branch information
elakito committed Sep 3, 2015
1 parent c3a5561 commit 8e1164a
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package io.swagger.resources;



import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

@Produces({"application/xml"})
public class SimpleSelfReferencingSubResource {

@Path("/sub")
public SubResource getSubResource() {
return new SubResource();
}

// keep this test resource simple with just a single level of self-reference
public static class SubResource {
@GET
public SubResource getSelf() {
return this;
}
}
}

0 comments on commit 8e1164a

Please sign in to comment.