-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDemo.http
More file actions
36 lines (30 loc) · 734 Bytes
/
Copy pathDemo.http
File metadata and controls
36 lines (30 loc) · 734 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
@ENDPOINT = http://localhost:7122
# -----------------------
# Health Check
#
####
# @name getHealth
GET {{ENDPOINT}}/api/Health HTTP/1.1
Content-Type: application/json
# -----------------------
# Start Recipe
#
####
# @name getRecipe
POST {{ENDPOINT}}/api/Prompt HTTP/1.1
Content-Type: application/json
{
"Prompt": "I'd like to grill something for dinner with chicken and broccoli. No dietary restrictions and I'd like some brown rice on the side.",
}
# -----------------------
# Adjust Recipe
#
####
# @name updateRecipe
@sessionId = {{getRecipe.response.body.SessionId}}
POST {{ENDPOINT}}/api/Prompt HTTP/1.1
Content-Type: application/json
{
"Prompt": "Use beef instead of chicken.",
"SessionId": "{{sessionId}}"
}