Skip to content

Commit

Permalink
Update README to include tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mikechau committed Apr 1, 2015
1 parent fad5407 commit b31170a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ class PetsController < ActionController::Base
operation :get do
key :description, 'Returns a single pet if the user has access'
key :operationId, 'findPetById'
key :tags, [
'pet'
]
parameter do
key :name, :id
key :in, :path
Expand Down Expand Up @@ -75,6 +78,9 @@ class PetsController < ActionController::Base
'application/json',
'text/html',
]
key :tags, [
'pet'
]
parameter do
key :name, :tags
key :in, :query
Expand Down Expand Up @@ -116,6 +122,9 @@ class PetsController < ActionController::Base
key :produces, [
'application/json'
]
key :tags, [
'pet'
]
parameter do
key :name, :pet
key :in, :body
Expand Down Expand Up @@ -231,6 +240,14 @@ class ApidocsController < ActionController::Base
key :name, 'MIT'
end
end
tags do
key :name, 'pet'
key :description, 'Pets operations'
externalDocs do
key :description, 'Find more info here'
key :url, 'https://swagger.io'
end
end
key :host, 'petstore.swagger.wordnik.com'
key :basePath, '/api'
key :consumes, ['application/json']
Expand Down

0 comments on commit b31170a

Please sign in to comment.