forked from exceptionless/Exceptionless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexceptionless.http
53 lines (35 loc) · 924 Bytes
/
exceptionless.http
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
47
48
49
50
51
52
53
@token = _token_
@apiUrl = http://exceptionless.localtest.me:5000/api/v2
@projectId = 537650f3b77efe23a47914f4
### login
POST {{apiUrl}}/auth/login
Content-Type: application/json
{
"email": "test@exceptionless.io",
"password": "tester"
}
# copy token result to @token above
### get current user info
GET {{apiUrl}}/users/me
Authorization: Bearer {{token}}
### get organizations
GET {{apiUrl}}/organizations
Authorization: Bearer {{token}}
### get projects
GET {{apiUrl}}/projects
Authorization: Bearer {{token}}
### post a sample JSON event
POST {{apiUrl}}/projects/{{projectId}}/events
Authorization: Bearer {{token}}
Content-Type: application/json
{
"message": "Hello World!"
}
### post a sample text event
POST {{apiUrl}}/projects/{{projectId}}/events
Authorization: Bearer {{token}}
Content-Type: text/plain
Hello World!
### get events
GET {{apiUrl}}/events
Authorization: Bearer {{token}}