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
30 lines
737 B
@token = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MiwidXNlcm5hbWUiOiJhc3RyaWEiLCJpYXQiOjE3NTI4NjQ1ODN9.yyKcb1vLhAxEftBN1Z27wV7uM1pSruVEMb4dtiqDTrg
|
|
|
|
### CREATE CHANNEL
|
|
POST http://localhost:8000/api/channels
|
|
Authorization: Bearer {{token}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"name": "Machin",
|
|
"description": "kljsdfjklsdfjkl",
|
|
"owner": 2
|
|
}
|
|
|
|
### 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"
|
|
}
|