path: http://192.168.0.46:3000/api/users
méthode: POST
path: http://192.168.0.46:3000/api/users/register
headers:
headers = {
"Content-Type": "application/json"
}
body:
body = {
"username": "Jarred87",
"email": "[email protected]",
"password": "DJ39vSnWBFG1RPW",
"avatar": "http://placeimg.com/640/480",
"country": "Ecuador",
"city": "East Eliasmouth",
"street": "1021 Madelyn Trafficway",
"zipCode": "916",
"phoneNumber": "205-899-3719",
"dialCode": "+213",
"firstName": "Mallie",
"lastName": "Mohr",
"skills": ["optical"]
}
méthode: POST
path: http://192.168.0.46:3000/api/users/login
headers:
headers = {
"Content-Type": "application/json"
}
body:
body = {
"email": "[email protected]",
"password": "DJ39vSnWBFG1RPW",
}
méthode: GET
path: http://192.168.0.46:3000/api/users/friends
headers:
headers = {
"x-access-token": "eyJhbGciOiJIUzI1NiIs...", //YOUR TOKEN
}
méthode : POST
path: http://192.168.0.46:3000/api/users/addfriend
headers:
headers = {
"x-access-token": "eyJhbGciOiJIUzI1NiIs...", //YOUR TOKEN
"Content-Type": "application/json"
}
body:
body = {
"friendName": "Tevin_Hermiston89"
}
méthode : POST
path: http://192.168.0.46:3000/api/users/removefriend
headers:
headers = {
"x-access-token": "eyJhbGciOiJIUzI1NiIs...", //YOUR TOKEN
"Content-Type": "application/json"
}
body:
body = {
"friendName": "Tevin_Hermiston89"
}
méthode : GET
path: http://192.168.0.46:3000/api/users/list
headers:
headers = {
"x-access-token": "eyJhbGciOiJIUzI1NiIs...", //YOUR TOKEN
}
méthode : GET
path: http://192.168.0.46:3000/api/users/:username
- remplacer :username par le username
headers:
headers = {
"x-access-token": "eyJhbGciOiJIUzI1NiIs...", //YOUR TOKEN
}
path: http://192.168.0.46:3000/api/messages
méthode : POST
path: http://192.168.0.46:3000/api/messages/addfriendmessage
headers:
headers = {
"x-access-token": "eyJhbGciOiJIUzI1NiIs...", //YOUR TOKEN
"Content-Type": "application/json"
}
body:
body = {
"friendName": "Tevin_Hermiston89",
"content":"slt sa va"
}
méthode : GET
path: http://192.168.0.46:3000/api/messages/friendmessages
headers:
headers = {
"x-access-token": "eyJhbGciOiJIUzI1NiIs...", //YOUR TOKEN
}
méthode : POST
path: http://192.168.0.46:3000/api/messages/addroommessage
headers:
headers = {
"x-access-token": "eyJhbGciOiJIUzI1NiIs...", //YOUR TOKEN
"Content-Type": "application/json"
}
body:
body = {
"roomName": "room 1",
"content":"slt sa va"
}
méthode : GET
path: http://192.168.0.46:3000/api/messages/roommessages/:roomName
- remplacer :roomName par le nom du groupe
headers:
headers = {
"x-access-token": "eyJhbGciOiJIUzI1NiIs...", //YOUR TOKEN
}
path: http://192.168.0.46:3000/api/rooms
méthode : POST
path: http://192.168.0.46:3000/api/rooms/create
headers:
headers = {
"x-access-token": "eyJhbGciOiJIUzI1NiIs...", //YOUR TOKEN
"Content-Type": "application/json"
}
body:
body = {
"roomName":"room 1"
}
méthode : GET
path: http://192.168.0.46:3000/api/room/:roomName
- remplacer :roomName par le nom du groupe
headers:
headers = {
"x-access-token": "eyJhbGciOiJIUzI1NiIs...", //YOUR TOKEN
}
méthode : POST
path: http://192.168.0.46:3000/api/rooms/adduser
headers:
headers = {
"x-access-token": "eyJhbGciOiJIUzI1NiIs...", //YOUR TOKEN
"Content-Type": "application/json"
}
body:
body = {
"roomName":"room 1",
"username":"Tevin_Hermiston89"
}
méthode : POST
path: http://192.168.0.46:3000/api/rooms/removeuser
headers:
headers = {
"x-access-token": "eyJhbGciOiJIUzI1NiIs...", //YOUR TOKEN
"Content-Type": "application/json"
}
body:
body = {
"roomName":"room 1",
"username":"Tevin_Hermiston89"
}
méthode : POST
path: http://192.168.0.46:3000/api/rooms/delete
headers:
headers = {
"x-access-token": "eyJhbGciOiJIUzI1NiIs...", //YOUR TOKEN
"Content-Type": "application/json"
}
body:
body = {
"roomName":"room 1",
}