Fix wrong endpoint in api/users documentation, fix same typo in spec describe blocks
This commit is contained in:
parent
6c09fbd889
commit
b939529c2a
2 changed files with 4 additions and 4 deletions
|
@ -643,7 +643,7 @@ Parameters:
|
||||||
| `id` | integer | yes | The ID of the user |
|
| `id` | integer | yes | The ID of the user |
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/user/:id/events
|
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/users/:id/events
|
||||||
```
|
```
|
||||||
|
|
||||||
Example response:
|
Example response:
|
||||||
|
|
|
@ -846,7 +846,7 @@ describe API::API, api: true do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'PUT /user/:id/block' do
|
describe 'PUT /users/:id/block' do
|
||||||
before { admin }
|
before { admin }
|
||||||
it 'blocks existing user' do
|
it 'blocks existing user' do
|
||||||
put api("/users/#{user.id}/block", admin)
|
put api("/users/#{user.id}/block", admin)
|
||||||
|
@ -873,7 +873,7 @@ describe API::API, api: true do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'PUT /user/:id/unblock' do
|
describe 'PUT /users/:id/unblock' do
|
||||||
let(:blocked_user) { create(:user, state: 'blocked') }
|
let(:blocked_user) { create(:user, state: 'blocked') }
|
||||||
before { admin }
|
before { admin }
|
||||||
|
|
||||||
|
@ -914,7 +914,7 @@ describe API::API, api: true do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'GET /user/:id/events' do
|
describe 'GET /users/:id/events' do
|
||||||
let(:user) { create(:user) }
|
let(:user) { create(:user) }
|
||||||
let(:project) { create(:empty_project) }
|
let(:project) { create(:empty_project) }
|
||||||
let(:note) { create(:note_on_issue, note: 'What an awesome day!', project: project) }
|
let(:note) { create(:note_on_issue, note: 'What an awesome day!', project: project) }
|
||||||
|
|
Loading…
Reference in a new issue