Skip to content

Commit

Permalink
update postman collection and swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
gribanoveu committed Jan 8, 2024
1 parent 298c504 commit bd15743
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 55 deletions.
158 changes: 104 additions & 54 deletions api/postman_collection.json
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"
Expand Down Expand Up @@ -371,7 +371,7 @@
"name": "v1",
"item": [
{
"name": "role/{userId}",
"name": "role",
"item": [
{
"name": "Получить роль пользователя",
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down
Loading

0 comments on commit bd15743

Please sign in to comment.