Files
news-server/test/dev-news-requests.rest
T
2021-12-23 13:57:52 +00:00

45 lines
708 B
ReStructuredText

#Query
GET https://dev-news.krgamestudios.com/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 https://dev-news.krgamestudios.com/news HTTP/1.1
Content-Type: application/json
Authorization: Bearer
{
"title": "Hello World",
"author": "Anonymous",
"body": "Lorem ipsum."
}
###
#Edit
PATCH https://dev-news.krgamestudios.com/news/1 HTTP/1.1
Content-Type: application/json
Authorization: Bearer
{
"title": "Goodnight World"
}
###
#Delete
DELETE https://dev-news.krgamestudios.com/news/1 HTTP/1.1
Content-Type: application/json
Authorization: Bearer