23 lines
554 B
HTTP
23 lines
554 B
HTTP
POST http://localhost:18080/api/auth/login
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"username": "admin",
|
|
"password": "123456@321"
|
|
}
|
|
|
|
###
|
|
POST http://localhost:18080/api/posts
|
|
Content-Type: application/json
|
|
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiZXhwIjoxNzI0MTUzOTMzfQ.3AleOSoNYIEWF1iSVreNKYnetSeawAfjIqAqWWwU058
|
|
|
|
{
|
|
"title": "hello world2",
|
|
"content": "# Markdown content here...\n## Heading 2\n\n- hello world2\n- wqyblog.cn"
|
|
}
|
|
|
|
###
|
|
GET http://localhost:8080/api/posts
|
|
Content-Type: application/json
|
|
|