refactor: q ordered article parameter
This commit is contained in:
parent
eac550daa9
commit
5201d1740c
3 changed files with 17 additions and 11 deletions
|
|
@ -70,5 +70,11 @@ module ApiHelper
|
|||
def self.id_url_param
|
||||
parameter name: :id, in: :path, type: :integer, required: true
|
||||
end
|
||||
|
||||
def self.q_ordered_url_param
|
||||
parameter name: 'q', in: :query, required: false,
|
||||
description: "'member' show articles ordered by the user's ordergroup, 'all' by all members, and 'supplier' ordered at the supplier",
|
||||
schema: { '$ref' => '#/components/schemas/q_ordered' }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue