mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
New REPP doc
This commit is contained in:
parent
7e123f902e
commit
21f07076cd
9 changed files with 113 additions and 153 deletions
|
@ -8,8 +8,8 @@ describe Repp::ContactV1 do
|
|||
Fabricate.times(2, :contact)
|
||||
end
|
||||
|
||||
describe 'GET /repp/v1/contacts', autodoc: true do
|
||||
it 'returns contacts of the current registrar' do
|
||||
describe 'GET /repp/v1/contacts' do
|
||||
it 'returns contacts of the current registrar', autodoc: true, route_info_doc: true do
|
||||
get_with_auth '/repp/v1/contacts', { limit: 1, details: true }, @api_user
|
||||
expect(response.status).to eq(200)
|
||||
|
||||
|
@ -29,7 +29,7 @@ describe Repp::ContactV1 do
|
|||
expect(log[:ip]).to eq('127.0.0.1')
|
||||
end
|
||||
|
||||
it 'returns contact names with offset' do
|
||||
it 'returns contact names with offset', autodoc: true do
|
||||
get_with_auth '/repp/v1/contacts', { offset: 1 }, @api_user
|
||||
expect(response.status).to eq(200)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue