slarny4/Demo1/postman-collections/demo1-collection.json

82 lines
2.1 KiB
JSON
Raw Normal View History

2024-11-25 04:33:26 +00:00
{
"info": {
"_postman_id": "12345678-1234-1234-1234-123456789012",
"name": "Demo1 Collection",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Get All Users",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/api/admin/getAllUsers",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "admin", "getAllUsers" ]
}
},
"response": []
},
{
"name": "Add Group",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\"group_name\": \"ip1-22\", \"students\": [{\"FIO\": \"Иванов Иван Иванович\", \"GroupID\": 1}, {\"FIO\": \"Петров Петр Петрович\", \"GroupID\": 1}]}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/api/admin/addGroup",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "admin", "addGroup" ]
}
},
"response": []
},
{
"name": "Delete User",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "{{baseUrl}}/api/admin/deleteUser?id=e6b9964d-ea9f-420a-84b9-af9633bbfab9",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "admin", "deleteUser" ],
"query": [
{
"key": "id",
"value": "e6b9964d-ea9f-420a-84b9-af9633bbfab9"
}
]
}
},
"response": []
},
{
"name": "Get Presence by Group",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/api/presence/getPresence?groupId=1",
"host": [ "{{baseUrl}}" ],
"path": [ "api", "presence", "getPresence" ],
"query": [
{
"key": "groupId",
"value": "1"
}
]
}
},
"response": []
}
]
}