Web Backend
    • Get Post List Route
      GET
    • Del Post Route
      GET
    • Get Post Info Route
      GET
    • Create Post Route
      POST
    • Get Comic List Route
      GET
    • Del Comic Route
      GET
    • Get Comic Info Route
      GET
    • Create Comic Route
      POST
    • Get Category List Route
      GET
    • Del Category Route
      GET
    • Get Category Info Route
      GET
    • Rename Category Route
      PUT
    • Rename Category Route
      POST
    • Get Tag Info Route
      GET
    • Top Swiper Route
      GET
    • Manga List Route
      GET
    • Manga Calendar Route
      GET
    • Recommended Articles Route
      GET
    • Get Settings Route
      GET
    • Change Settings Route
      POST
    • Root
      GET
    • Check Db Connection
      GET
    • Auth
      POST
    • Read Current User
      GET

      Create Post Route

      正式环境
      httpw://api.fwgxt.top/api
      正式环境
      httpw://api.fwgxt.top/api
      POST
      /post/new
      创建新文章。
      Args:
      post_data (PostCreate): 包含文章信息的对象。
      Returns:
      dict: 包含是否创建成功的json。

      请求参数

      Body 参数application/json

      示例
      {
          "post_id": 0,
          "name": "string",
          "time": "2019-08-24",
          "content": "string",
          "cover": "string",
          "category": {
              "id": 0,
              "label": "string"
          },
          "recommended": 0
      }

      请求示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location 'httpw://api.fwgxt.top/api/post/new' \
      --header 'Content-Type: application/json' \
      --data '{
          "post_id": 0,
          "name": "string",
          "time": "2019-08-24",
          "content": "string",
          "cover": "string",
          "category": {
              "id": 0,
              "label": "string"
          },
          "recommended": 0
      }'

      返回响应

      🟢200Successful Response
      application/json
      Bodyapplication/json

      示例
      null
      🟠422Validation Error
      修改于 2023-11-13 02:31:27
      上一页
      Get Post Info Route
      下一页
      Get Comic List Route
      Built with