quick-start
    quick-start
    • events
      • 根据id删除
        DELETE
      • 查询所有(含分页)
        GET
      • 根据id查询
        GET
      • 添加
        POST
      • 修改
        PATCH
    • post
      • 创建post
        POST
      • 查询所有
        GET
      • 根据id查询
        GET
      • 更新post
        PATCH
      • 根据id删除
        DELETE
      • 分页查询
        GET
    • 注册
      POST
    • 通过token获取user信息
      GET
    • 登录
      POST

      登录

      开发中
      测试环境
      http://test-cn.your-api-server.com
      测试环境
      http://test-cn.your-api-server.com
      POST
      http://test-cn.your-api-server.com
      /auth/login

      请求参数

      Body 参数application/json
      username
      string 
      必需
      password
      string 
      必需
      示例
      {
          "username": "string",
          "password": "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://test-cn.your-api-server.com/auth/login' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "username": "string",
          "password": "string"
      }'

      返回响应

      🟢200成功
      application/json
      Body
      userId
      integer 
      必需
      token
      string 
      必需
      示例
      {
          "userId": 0,
          "token": "string"
      }
      修改于 2023-07-03 04:28:02
      上一页
      通过token获取user信息
      Built with