-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update postman collection and swagger
- Loading branch information
1 parent
298c504
commit bd15743
Showing
2 changed files
with
105 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"info": { | ||
"_postman_id": "2040f8a6-7526-4287-b578-3c38e7a3ac74", | ||
"_postman_id": "9e9a6113-1be9-49d6-95eb-014e5d2cf3f9", | ||
"name": "Spring auth backend service", | ||
"description": "Описание Api\n\nContact Support:\n Name: Evgeny Gribanov\n Email: [email protected]", | ||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | ||
|
@@ -371,7 +371,7 @@ | |
"name": "v1", | ||
"item": [ | ||
{ | ||
"name": "role/{userId}", | ||
"name": "role", | ||
"item": [ | ||
{ | ||
"name": "Получить роль пользователя", | ||
|
@@ -412,6 +412,108 @@ | |
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Получить список пользователей", | ||
"request": { | ||
"auth": { | ||
"type": "bearer", | ||
"bearer": [ | ||
{ | ||
"key": "token", | ||
"value": "{{bearerToken}}", | ||
"type": "string" | ||
} | ||
] | ||
}, | ||
"method": "GET", | ||
"header": [ | ||
{ | ||
"key": "Accept", | ||
"value": "*/*" | ||
} | ||
], | ||
"url": { | ||
"raw": "{{baseUrl}}/v1/role/users?page=0&size=10&sort=id", | ||
"host": [ | ||
"{{baseUrl}}" | ||
], | ||
"path": [ | ||
"v1", | ||
"role", | ||
"users" | ||
], | ||
"query": [ | ||
{ | ||
"key": "page", | ||
"value": "0", | ||
"description": "required or default 0" | ||
}, | ||
{ | ||
"key": "size", | ||
"value": "10", | ||
"description": "required or default 10" | ||
}, | ||
{ | ||
"key": "sort", | ||
"value": "id", | ||
"description": "optional. property in user object" | ||
} | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Получить список модераторов", | ||
"request": { | ||
"auth": { | ||
"type": "bearer", | ||
"bearer": [ | ||
{ | ||
"key": "token", | ||
"value": "{{bearerToken}}", | ||
"type": "string" | ||
} | ||
] | ||
}, | ||
"method": "GET", | ||
"header": [ | ||
{ | ||
"key": "Accept", | ||
"value": "*/*" | ||
} | ||
], | ||
"url": { | ||
"raw": "{{baseUrl}}/v1/role/moders?page=0&size=10&sort=id", | ||
"host": [ | ||
"{{baseUrl}}" | ||
], | ||
"path": [ | ||
"v1", | ||
"role", | ||
"moders" | ||
], | ||
"query": [ | ||
{ | ||
"key": "page", | ||
"value": "0", | ||
"description": "required or default 0" | ||
}, | ||
{ | ||
"key": "size", | ||
"value": "10", | ||
"description": "required or default 10" | ||
}, | ||
{ | ||
"key": "sort", | ||
"value": "id", | ||
"description": "optional. property in user object" | ||
} | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Обновить роль до пользователя", | ||
"request": { | ||
|
@@ -671,58 +773,6 @@ | |
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Получить список всех пользователей", | ||
"request": { | ||
"auth": { | ||
"type": "bearer", | ||
"bearer": [ | ||
{ | ||
"key": "token", | ||
"value": "{{bearerToken}}", | ||
"type": "string" | ||
} | ||
] | ||
}, | ||
"method": "GET", | ||
"header": [ | ||
{ | ||
"key": "Accept", | ||
"value": "*/*" | ||
} | ||
], | ||
"url": { | ||
"raw": "{{baseUrl}}/v1/moderator/users-list?page=0&size=10", | ||
"host": [ | ||
"{{baseUrl}}" | ||
], | ||
"path": [ | ||
"v1", | ||
"moderator", | ||
"users-list" | ||
], | ||
"query": [ | ||
{ | ||
"key": "page", | ||
"value": "0", | ||
"description": "(Required) " | ||
}, | ||
{ | ||
"key": "size", | ||
"value": "10", | ||
"description": "(Required) " | ||
}, | ||
{ | ||
"key": "sort", | ||
"value": "[\"enim dolore\",\"laborum eu lab\"]", | ||
"description": "(Required) ", | ||
"disabled": true | ||
} | ||
] | ||
} | ||
}, | ||
"response": [] | ||
}, | ||
{ | ||
"name": "Удалить пользователя", | ||
"request": { | ||
|
Oops, something went wrong.