готово

This commit is contained in:
2026-11-06 18:54:28 +03:00
parent 0ab3a341aa
commit 89a42cb7bb
196 changed files with 18570 additions and 11 deletions
+3 -5
View File
@@ -20,11 +20,9 @@ Content-Type: application/json
"password": "Example-only-not-a-real-secret-123"
}
### Create session: generate the Base64 value locally, do not commit credentials
# Base64 of UTF-8 username:password; only this endpoint accepts Basic.
### Create session with Basic; the HTTP client encodes UTF-8 credentials
POST {{baseUrl}}/api/v1/auth/sessions
Authorization: Basic REPLACE_WITH_LOCAL_BASE64_CREDENTIAL
Authorization: Basic admin admin-password-123
### Create chat; both UUIDs must be real registered users
POST {{baseUrl}}/api/v1/chats
@@ -35,8 +33,8 @@ Content-Type: application/json
### Send message
POST {{baseUrl}}/api/v1/chats/{{chatId}}/messages
Idempotency-Key: {{$uuid}}
Authorization: Bearer {{sessionToken}}
Idempotency-Key: example-message-001
Content-Type: application/json
{"text":"Привет, Боб!"}