45 lines
656 B
ReStructuredText
45 lines
656 B
ReStructuredText
#Query
|
|
GET http://localhost:3100/news HTTP/1.1
|
|
|
|
###
|
|
|
|
#Login
|
|
POST https://dev-auth.krgamestudios.com/auth/login HTTP/1.1
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"email": "example@example.com",
|
|
"password": "helloworld"
|
|
}
|
|
|
|
###
|
|
|
|
#Publish
|
|
POST http://localhost:3100/news HTTP/1.1
|
|
Content-Type: application/json
|
|
Authorization: Bearer
|
|
|
|
{
|
|
"title": "Hello World",
|
|
"author": "Anonymous",
|
|
"body": "Lorem ipsum."
|
|
}
|
|
|
|
###
|
|
|
|
#Edit
|
|
PATCH http://localhost:3100/news/1 HTTP/1.1
|
|
Content-Type: application/json
|
|
Authorization: Bearer
|
|
|
|
{
|
|
"title": "Goodnight World"
|
|
}
|
|
|
|
###
|
|
|
|
#Delete
|
|
DELETE http://localhost:3100/news/1 HTTP/1.1
|
|
Content-Type: application/json
|
|
Authorization: Bearer
|