You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
737 B

@token = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhc3RyaWEiLCJpYXQiOjE3NTI3ODY2Njh9._naj-ip2UeBxbflzGOWLxjHNTXJobLJ9s_70xL6ylKw
### CREATE CHANNEL
POST http://localhost:8000/api/channels
Authorization: Bearer {{token}}
Content-Type: application/json
{
"name": "Machin",
"description": "kljsdfjklsdfjkl",
"owner": 1
}
### GET CHANNEL BY ID
GET http://localhost:8000/api/channels/20
Authorization: Bearer {{token}}
### GET ALL CHANNEL
GET http://localhost:8000/api/channels/
Authorization: Bearer {{token}}
### UPDATE CHANNEL
PUT http://localhost:8000/api/channels/2
Authorization: Bearer {{token}}
Content-Type: application/json
{
"name": "Salut cest cool",
"description": "hjqdfshjklsdqfhjkl"
}