From b38cd460d1858d7ec8287157ccb1654165c4e966 Mon Sep 17 00:00:00 2001 From: Martin Hug Date: Thu, 15 Dec 2016 14:17:56 +0100 Subject: [PATCH] Add @api annotiation for swagger endpoints --- .../de/rwth/dbis/acis/bazaar/service/AttachmentsResource.java | 1 + src/main/de/rwth/dbis/acis/bazaar/service/BazaarService.java | 2 +- src/main/de/rwth/dbis/acis/bazaar/service/CommentsResource.java | 1 + .../de/rwth/dbis/acis/bazaar/service/ComponentsResource.java | 1 + src/main/de/rwth/dbis/acis/bazaar/service/ProjectsResource.java | 1 + .../de/rwth/dbis/acis/bazaar/service/RequirementsResource.java | 1 + src/main/de/rwth/dbis/acis/bazaar/service/UsersResource.java | 1 + 7 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/de/rwth/dbis/acis/bazaar/service/AttachmentsResource.java b/src/main/de/rwth/dbis/acis/bazaar/service/AttachmentsResource.java index 6efdfc97..04e9e561 100644 --- a/src/main/de/rwth/dbis/acis/bazaar/service/AttachmentsResource.java +++ b/src/main/de/rwth/dbis/acis/bazaar/service/AttachmentsResource.java @@ -40,6 +40,7 @@ public AttachmentsResource() throws Exception { bazaarService = new BazaarService(); } + @Api(value = "attachments", description = "Attachments resource") @Path("/") public static class Resource { diff --git a/src/main/de/rwth/dbis/acis/bazaar/service/BazaarService.java b/src/main/de/rwth/dbis/acis/bazaar/service/BazaarService.java index 2f9f56ca..a5e7b5dd 100755 --- a/src/main/de/rwth/dbis/acis/bazaar/service/BazaarService.java +++ b/src/main/de/rwth/dbis/acis/bazaar/service/BazaarService.java @@ -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", diff --git a/src/main/de/rwth/dbis/acis/bazaar/service/CommentsResource.java b/src/main/de/rwth/dbis/acis/bazaar/service/CommentsResource.java index ed8308f1..1f081ac9 100644 --- a/src/main/de/rwth/dbis/acis/bazaar/service/CommentsResource.java +++ b/src/main/de/rwth/dbis/acis/bazaar/service/CommentsResource.java @@ -43,6 +43,7 @@ public CommentsResource() throws Exception { bazaarService = new BazaarService(); } + @Api(value = "comments", description = "Comments resource") @Path("/") public static class Resource { diff --git a/src/main/de/rwth/dbis/acis/bazaar/service/ComponentsResource.java b/src/main/de/rwth/dbis/acis/bazaar/service/ComponentsResource.java index b0136f11..eb329c8c 100644 --- a/src/main/de/rwth/dbis/acis/bazaar/service/ComponentsResource.java +++ b/src/main/de/rwth/dbis/acis/bazaar/service/ComponentsResource.java @@ -40,6 +40,7 @@ public ComponentsResource() throws Exception { bazaarService = new BazaarService(); } + @Api(value = "components", description = "Components resource") @Path("/") public static class Resource { diff --git a/src/main/de/rwth/dbis/acis/bazaar/service/ProjectsResource.java b/src/main/de/rwth/dbis/acis/bazaar/service/ProjectsResource.java index 226579f5..ea2aa2a7 100644 --- a/src/main/de/rwth/dbis/acis/bazaar/service/ProjectsResource.java +++ b/src/main/de/rwth/dbis/acis/bazaar/service/ProjectsResource.java @@ -39,6 +39,7 @@ public ProjectsResource() throws Exception { bazaarService = new BazaarService(); } + @Api(value = "projects", description = "Projects resource") @Path("/") public static class Resource { diff --git a/src/main/de/rwth/dbis/acis/bazaar/service/RequirementsResource.java b/src/main/de/rwth/dbis/acis/bazaar/service/RequirementsResource.java index 4236b6ff..63bb099c 100644 --- a/src/main/de/rwth/dbis/acis/bazaar/service/RequirementsResource.java +++ b/src/main/de/rwth/dbis/acis/bazaar/service/RequirementsResource.java @@ -41,6 +41,7 @@ public RequirementsResource() throws Exception { bazaarService = new BazaarService(); } + @Api(value = "requirements", description = "Requirements resource") @Path("/") public static class Resource { diff --git a/src/main/de/rwth/dbis/acis/bazaar/service/UsersResource.java b/src/main/de/rwth/dbis/acis/bazaar/service/UsersResource.java index 92276df6..8219c614 100644 --- a/src/main/de/rwth/dbis/acis/bazaar/service/UsersResource.java +++ b/src/main/de/rwth/dbis/acis/bazaar/service/UsersResource.java @@ -34,6 +34,7 @@ public UsersResource() throws Exception { bazaarService = new BazaarService(); } + @Api(value = "users", description = "Users resource") @Path("/") public static class Resource {