Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package issue17; | ||
|
||
/** | ||
* Created with IntelliJ IDEA. | ||
* User: kongchen | ||
* Date: 7/31/13 | ||
*/ | ||
public class Child extends Parent{ | ||
private String name; | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package issue17; | ||
|
||
import com.sun.jersey.api.NotFoundException; | ||
import com.wordnik.swagger.annotations.*; | ||
|
||
import javax.ws.rs.GET; | ||
import javax.ws.rs.Path; | ||
import javax.ws.rs.Produces; | ||
import javax.ws.rs.core.MediaType; | ||
import javax.ws.rs.core.Response; | ||
|
||
/** | ||
* Created with IntelliJ IDEA. | ||
* User: kongchen | ||
* Date: 5/13/13 | ||
*/ | ||
@Path("/issue17") | ||
@Api(value = "/issue17", description = "For issue 17") | ||
@Produces({"application/json"}) | ||
public class IssueResource { | ||
@GET | ||
@Path("/{carId}") | ||
@ApiOperation(value = "For issue 17",responseClass = "issue17.Child") | ||
public Response getIssue17() | ||
throws NotFoundException { | ||
return Response.noContent().build(); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package issue17; | ||
|
||
/** | ||
* Created with IntelliJ IDEA. | ||
* User: kongchen | ||
* Date: 7/31/13 | ||
*/ | ||
public class Parent { | ||
protected Child child; | ||
private String cannotsee; | ||
protected String cansee; | ||
|
||
public Child getChild(){ | ||
return child; | ||
} | ||
|
||
public String getCannotsee() { | ||
return cannotsee; | ||
} | ||
|
||
public void setCannotsee(String cannotsee) { | ||
this.cannotsee = cannotsee; | ||
} | ||
|
||
public String getCansee() { | ||
return cansee; | ||
} | ||
|
||
public void setCansee(String cansee) { | ||
this.cansee = cansee; | ||
} | ||
} |