-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotifapi.http
More file actions
43 lines (38 loc) · 823 Bytes
/
notifapi.http
File metadata and controls
43 lines (38 loc) · 823 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
39
40
41
42
43
@host = http://127.0.0.1:10887
###
GET /api/ping
HTTP/1.1 200 - OK
content-type: application/json
date: Tue, 25 Feb 2025 17:51:49 GMT
content-length: 8
connection: close
###
POST /api/notify
{
"interests": ["hello"],
"title": "Test message",
"body": "This is a test from my testing platform",
"link": "",
"source": "My-Laptop",
"metadata": {
"server": "macbook-pro"
}
}
HTTP/1.1 200 - OK
date: Tue, 25 Feb 2025 17:52:47 GMT
content-length: 0
connection: close
###
GET /api/recent/10
HTTP/1.1 200 - OK
content-type: application/json
date: Tue, 25 Feb 2025 17:52:48 GMT
content-length: 2
connection: close
###
GET /api/history/2025-02-20T12:54:19.428978-05:00
HTTP/1.1 200 - OK
content-type: application/json
date: Tue, 25 Feb 2025 17:54:32 GMT
content-length: 2
connection: close