go-clean-code-template
    go-clean-code-template
    • Service Status
      GET
    • Service Status (/api)
      GET
    • Create User
      POST
    • Get User
      POST

      Create User

      正式环境
      https://go-clean-code-template.zouying.work
      正式环境
      https://go-clean-code-template.zouying.work
      POST
      /user/create
      责任人:邹颖
      Create a user.

      请求参数

      Body 参数application/json
      username
      string 
      必需
      avatar
      string 
      必需
      示例
      {
          "username": "zy",
          "avatar": "https://avatars.githubusercontent.com/u/3946563?v=4"
      }

      示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'https://go-clean-code-template.zouying.work/user/create' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "username": "zy",
          "avatar": "https://avatars.githubusercontent.com/u/3946563?v=4"
      }'

      返回响应

      🟢200成功
      application/json
      Body
      object {0}
      示例
      {}
      修改于 2024-04-11 06:09:22
      上一页
      Service Status (/api)
      下一页
      Get User
      Built with