mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 15:22:56 +00:00
Support parameters provided at the 'path' level
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user