mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 01:47:18 +02:00
Add descriptions to fields
This commit is contained in:
parent
42001c4601
commit
28d0cfd4df
5 changed files with 32 additions and 31 deletions
|
@ -5,9 +5,9 @@ module Repp
|
|||
resource :contacts do
|
||||
desc 'Return list of contact'
|
||||
params do
|
||||
optional :limit, type: Integer, values: (1..20).to_a
|
||||
optional :offset, type: Integer
|
||||
optional :details, type: String, values: %w(true false)
|
||||
optional :limit, type: Integer, values: (1..20).to_a, desc: 'How many contacts to show'
|
||||
optional :offset, type: Integer, desc: 'Contact number to start at'
|
||||
optional :details, type: String, values: %w(true false), desc: 'Whether to include details'
|
||||
end
|
||||
|
||||
get '/' do
|
||||
|
|
|
@ -5,9 +5,9 @@ module Repp
|
|||
resource :domains do
|
||||
desc 'Return list of domains'
|
||||
params do
|
||||
optional :limit, type: Integer, values: (1..20).to_a
|
||||
optional :offset, type: Integer
|
||||
optional :details, type: String, values: %w(true false)
|
||||
optional :limit, type: Integer, values: (1..20).to_a, desc: 'How many domains to show'
|
||||
optional :offset, type: Integer, desc: 'Domain number to start at'
|
||||
optional :details, type: String, values: %w(true false), desc: 'Whether to include details'
|
||||
end
|
||||
|
||||
get '/' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue