Skip to content

Commit

Permalink
Add @api annotiation for swagger endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
hexTileX committed Dec 15, 2016
1 parent dc2e8d6 commit b38cd46
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public AttachmentsResource() throws Exception {
bazaarService = new BazaarService();
}

@Api(value = "attachments", description = "Attachments resource")
@Path("/")
public static class Resource {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
*
* @author István Koren
*/
//TODO Service from BasaarService, here is no Endpoint
@ServicePath("/bazaar/main")
@Api
@SwaggerDefinition(
info = @Info(
title = "Requirements Bazaar",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public CommentsResource() throws Exception {
bazaarService = new BazaarService();
}

@Api(value = "comments", description = "Comments resource")
@Path("/")
public static class Resource {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public ComponentsResource() throws Exception {
bazaarService = new BazaarService();
}

@Api(value = "components", description = "Components resource")
@Path("/")
public static class Resource {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public ProjectsResource() throws Exception {
bazaarService = new BazaarService();
}

@Api(value = "projects", description = "Projects resource")
@Path("/")
public static class Resource {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public RequirementsResource() throws Exception {
bazaarService = new BazaarService();
}

@Api(value = "requirements", description = "Requirements resource")
@Path("/")
public static class Resource {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public UsersResource() throws Exception {
bazaarService = new BazaarService();
}

@Api(value = "users", description = "Users resource")
@Path("/")
public static class Resource {

Expand Down

0 comments on commit b38cd46

Please sign in to comment.