-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpantry-request.http
More file actions
46 lines (39 loc) · 1.06 KB
/
pantry-request.http
File metadata and controls
46 lines (39 loc) · 1.06 KB
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
39
40
41
42
43
44
45
46
@PANTRY_ENDPOINT = basket/teacher-activity
### Create new basket
POST {{PANTRY_URL}}/{{PANTRY_KEY}}/{{PANTRY_ENDPOINT}}}
Content-Type: application/json
### Delete basket
DELETE {{PANTRY_URL}}/{{PANTRY_KEY}}/{{PANTRY_ENDPOINT}}
Content-Type: application/json
### Get Baskets
GET {{PANTRY_URL}}/{{PANTRY_KEY}}
Content-Type: application/json
### Get Content Basket
GET {{PANTRY_URL}}/{{PANTRY_KEY}}/{{PANTRY_ENDPOINT}}
Content-Type: application/json
### Add or Update
POST {{PANTRY_URL}}/{{PANTRY_KEY}}/{{PANTRY_ENDPOINT}}
Content-Type: application/json
{
"activities": [{
"id": "1",
"title": "Activity 1",
"desc": "Activity 1 is mine",
"date": "2025-01-15T10:30:00Z"
},{
"id": "2",
"title": "Activity 2",
"desc": "Activity 2 is mine",
"date": "2025-03-22T18:45:00Z"
}]
}
### Update Basket Update
PUT {{PANTRY_URL}}/{{PANTRY_KEY}}/{{PANTRY_ENDPOINT}}
Content-Type: application/json
{
"activities": [{
"id": 1,
"title": "Activity 1 changed",
"desc": "Activity 1 is mine"
}]
}