forked from kiwiupover/ember-octane-seattle-training
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAPI_EXAMPLES.http
More file actions
35 lines (24 loc) · 794 Bytes
/
Copy pathAPI_EXAMPLES.http
File metadata and controls
35 lines (24 loc) · 794 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
### Get all users
GET http://localhost:4200/api/users HTTP/1.1
### Get one user
GET http://localhost:4200/api/users/1 HTTP/1.1
### Get all teams
GET http://localhost:4200/api/teams HTTP/1.1
### Get a team (includes channels)
GET http://localhost:4200/api/teams/linkedin HTTP/1.1
### Get team channel messages
http://localhost:4200/api/teams/linkedin/channels
### Get team channel messages
GET http://localhost:4200/api/teams/linkedin/channels/jobs/messages HTTP/1.1
### Create a new message in a team channel
POST http://localhost:4200/api/messages HTTP/1.1
Content-Type: application/json
{
"teamId": "li",
"channelId": "general",
"userId": 1,
"body": "Hi everyone!"
}
### Delete a message
DELETE http://localhost:4200/api/messages/19 HTTP/1.1
Content-Type: application/json