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
738 B
30 lines
738 B
@token = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhc3RyaWEiLCJpYXQiOjE3NTMwNDAxMTh9.GNGee4BYCL-wO3I8FtXXJIc-xsLMfuOoUlBhHjQJcWo
|
|
|
|
### CREATE CHANNEL
|
|
POST http://localhost:8000/api/channels
|
|
Authorization: Bearer {{token}}
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"name": "Arcanas",
|
|
"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"
|
|
}
|