spring-boot-start
  1. BlogController
spring-boot-start
  • BlogController
    • 接口名称:查询博客
      GET
    • 新增博客
      POST
    • 删除博客
      DELETE
    • 更新博客
      PUT
  • FileController
    • 文件上传
      POST
    • 文件下载
      GET
  • UserController
    • 获取所有用户
      GET
    • 添加用户
      POST
    • 获取用户信息
      GET
    • 更新用户信息
      PUT
    • 删除用户
      DELETE
    • 获取用户日志列表
      GET
  • LoginController
    • login
      POST
    • loginByCode
      POST
    • logout
      POST
    • loginByCode
      POST
  • 未命名接口
    GET
  1. BlogController

新增博客

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
http://dev-cn.your-api-server.com
/blog
最后修改时间:2024-01-02 09:31:37
责任人:未设置
新增

请求参数

Body 参数application/json
title
string  | null 
标题
可选
description
string  | null 
描述
可选
content
string  | null 
内容
可选
示例
{
  "title": "string",
  "description": "string",
  "content": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/blog' \
--header 'Content-Type: application/json' \
--data-raw '{
    "title": "string",
    "description": "string",
    "content": "string"
}'

返回响应

🟢200成功
application/json
Body
code
integer  | null 
可选
message
string  | null 
可选
data
null  | null 
可选
示例
{
  "code": 0,
  "message": "",
  "data": null
}
上一页
接口名称:查询博客
下一页
删除博客
Built with