Support parameters provided at the 'path' level

This commit is contained in:
richie
2016-10-13 18:17:19 -07:00
parent de09df59e1
commit 4d675056c1
7 changed files with 57 additions and 21 deletions

View File

@@ -41,12 +41,13 @@ describe 'Blogs API', type: :request, swagger_doc: 'v1/swagger.json' do
end
path '/blogs/{id}' do
parameter name: :id, :in => :path, :type => :string
get 'Retrieves a blog' do
tags 'Blogs'
description 'Retrieves a specific blog by id'
operationId 'getBlog'
produces 'application/json'
parameter name: :id, :in => :path, :type => :string
response '200', 'blog found' do
schema '$ref' => '#/definitions/blog'