Conversation

khiav223577

Currently I have two APIs with same route but different parameters.
It will generate wrong documents in this case. The parameter is duplicate and should not be listed in GET /admin/laboratories API. See my test cases and screenshot below:

route '/admin/laboratories', 'Laboratory List' do
  get 'Get Labs' do
    it do
      # ...
    end
  end
end

route '/admin/laboratories', 'Laboratory List' do
  post 'Create New Lab' do
    parameter :name, with_example: true, required: true
    parameter :products, with_example: true, required: true

    it do
      # ...
    end
  end
end

image

This PR will fix the problem.

@khiav223577khiav223577 force-pushed the fix/api_blueprint_params branch from 0974a4e to 82a5eea Compare September 11, 2020 03:02
Sign up for free to join this conversation on . Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

@khiav223577