Skip to content

Commit

Permalink
chore(tags): add swagger annotation (#810)
Browse files Browse the repository at this point in the history
  • Loading branch information
emjburns authored May 29, 2019
1 parent 05eb866 commit d82010d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.netflix.spinnaker.gate.services.EntityTagsService;
import com.netflix.spinnaker.gate.services.TaskService;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
Expand Down Expand Up @@ -53,7 +54,10 @@ public EntityTagsController(EntityTagsService entityTagsService, TaskService tas

@RequestMapping(method = RequestMethod.GET)
public Collection<Map> list(
@RequestParam Map<String, Object> allParameters,
@ApiParam(
"Any parameters to filter by, passed as individual parameters. Options are: \n cloudProvider, application, entityType, entityId, idPrefix, account, region, namespace, maxResults")
@RequestParam
Map<String, Object> allParameters,
@RequestHeader(value = "X-RateLimit-App", required = false) String sourceApp) {
return entityTagsService.list(allParameters, sourceApp);
}
Expand Down

0 comments on commit d82010d

Please sign in to comment.