Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
fix(swagger): Annotate configuration resources for Swagger descriptor…
Browse files Browse the repository at this point in the history
… inclusion

Closes gravitee-io/issues#357
  • Loading branch information
brasseld committed Dec 6, 2016
1 parent 6626d6c commit 783dead
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
package io.gravitee.management.rest.resource;

import io.swagger.annotations.Api;

import javax.ws.rs.Path;
import javax.ws.rs.container.ResourceContext;
import javax.ws.rs.core.Context;
Expand All @@ -25,6 +27,7 @@
* @author GraviteeSource Team
*/
@Path("/configuration")
@Api(tags = {"Configuration"})
public class ConfigurationResource {

@Context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
* @author Nicolas GERAUD (nicolas.geraud at graviteesource.com)
* @author GraviteeSource Team
*/

@Api(tags = {"GROUP"})
public class GroupMembersResource extends AbstractResource {

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* @author GraviteeSource Team
*/

@Api(tags = {"GROUP"})
@Api(tags = {"Group"})
public class GroupResource extends AbstractResource {

@Context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* @author Nicolas GERAUD (nicolas.geraud at graviteesource.com)
* @author GraviteeSource Team
*/

@Api(tags = {"Group"})
public class GroupsResource extends AbstractResource {

@Context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import io.gravitee.management.model.TagEntity;
import io.gravitee.management.model.UpdateTagEntity;
import io.gravitee.management.service.TagService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;

import javax.validation.Valid;
Expand All @@ -32,6 +33,7 @@
* @author Azize ELAMRANI (azize at graviteesource.com)
* @author GraviteeSource Team
*/
@Api(tags = {"Sharding Tags"})
public class TagsResource extends AbstractResource {

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import io.gravitee.management.rest.enhancer.ViewEnhancer;
import io.gravitee.management.service.ApiService;
import io.gravitee.management.service.ViewService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;

import javax.validation.Valid;
Expand All @@ -33,6 +34,7 @@
* @author Azize ELAMRANI (azize at graviteesource.com)
* @author GraviteeSource Team
*/
@Api(tags = {"Views"})
public class ViewsResource extends AbstractResource {

@Autowired
Expand Down

0 comments on commit 783dead

Please sign in to comment.