-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathapi.http
More file actions
38 lines (30 loc) · 903 Bytes
/
api.http
File metadata and controls
38 lines (30 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
##################################################################
# VS Code with REST Client extension is needed to use this file.
# Download at: https://aka.ms/vscode/rest-client
##################################################################
@api_host = http://localhost:7072
### Get user info, should return 401
GET {{api_host}}/api/me
### Get user info
GET {{api_host}}/api/me
x-ms-client-principal: eyJ1c2VySWQiOiJfX3Rlc3RfdXNlcl9fIn0=
### Chat with the agent
POST {{api_host}}/api/chats/stream?userId=1
Content-Type: application/json
{
"messages": [
{
"content": "What is there on the menu?",
"role": "user"
}
],
"context": {
"sessionId": "123"
}
}
### Retrieve all chat sessions
GET {{api_host}}/api/chats?userId=1
### Retrieve a chat session
GET {{api_host}}/api/chats/123?userId=1
### Delete a chat session
DELETE {{api_host}}/api/chats/123?userId=1