-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspeakers.http
More file actions
40 lines (32 loc) · 1.05 KB
/
speakers.http
File metadata and controls
40 lines (32 loc) · 1.05 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
### ============================
### Speaker API
### ============================
### List all speakers
GET http://localhost:8080/api/v1/speakers
Accept: application/json
### Get a speaker by ID
GET http://localhost:8080/api/v1/speakers/spk-duke
Accept: application/json
### Create a new speaker (requires ORGANIZER JWT)
POST http://localhost:8080/api/v1/speakers
Content-Type: application/json
Authorization: Bearer {{jwt_organizer}}
{
"name": "Ada Lovelace",
"bio": "Pioneer of analytical computing.",
"company": "Babbage Labs",
"photoUrl": "https://example.com/ada.png"
}
### Update a speaker (requires ORGANIZER JWT)
PUT http://localhost:8080/api/v1/speakers/{{speaker_id}}
Content-Type: application/json
Authorization: Bearer {{jwt_organizer}}
{
"name": "Ada Lovelace",
"bio": "Updated biography with more details.",
"company": "Babbage Labs International",
"photoUrl": "https://example.com/ada-v2.png"
}
### Delete a speaker (requires ORGANIZER JWT)
DELETE http://localhost:8080/api/v1/speakers/{{speaker_id}}
Authorization: Bearer {{jwt_organizer}}