Выполнение работы на 4.

This commit is contained in:
2026-11-13 21:41:50 +03:00
parent ec540a1a72
commit 6308f21ec7
104 changed files with 7310 additions and 13 deletions
+44
View File
@@ -0,0 +1,44 @@
# Optional HTTP-client worksheet; no extension is required by the course.
# Replace IDs/token locally from real responses; do not commit filled-in credentials.
# Canonical API: contracts/openapi.json and contracts/README.md.
@baseUrl = http://localhost:8080
@aliceId = 888abdee-21fc-49f8-8220-2548949d2161
@bobId = d1aece1d-df42-4fb7-9e16-e9c10fdf60b2
@chatId = 54ef7f48-faba-4542-b6ea-644a75e93955
### Liveness
GET {{baseUrl}}/health/live
### Register Alice (repeat with username bob/display_name Боб)
POST {{baseUrl}}/api/v1/users
Content-Type: application/json
{
"username": "alice",
"display_name": "Алиса"
}
### Register Bob (repeat with username bob/display_name Боб)
POST {{baseUrl}}/api/v1/users
Content-Type: application/json
{
"username": "bob",
"display_name": "Боб"
}
### Create chat; both UUIDs must be real registered users
POST {{baseUrl}}/api/v1/chats
X-User-Id: {{aliceId}}
Content-Type: application/json
{"title":"Проект по ВНП","member_ids":["{{aliceId}}","{{bobId}}"]}
### Send message
POST {{baseUrl}}/api/v1/chats/{{chatId}}/messages
X-User-Id: {{aliceId}}
Content-Type: application/json
{"text":"Привет, Боб!"}
### Read first page
GET {{baseUrl}}/api/v1/chats/{{chatId}}/messages?limit=50
X-User-Id: {{aliceId}}