wqyblog_api_go/text.http

23 lines
506 B
HTTP

POST http://localhost:8080/api/auth/login
Content-Type: application/json
{
"username": "admin",
"password": "123456@321"
}
###
POST http://localhost:8080/api/posts
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiZXhwIjoxNzI0MTMxNjIxfQ.NZu5hhl7XjT9BdjIPmBAknekNHIavZYh5Xzz39PUzkk
{
"title": "New Post Title",
"content": "Markdown content here..."
}
###
GET http://localhost:8080/api/posts
Content-Type: application/json