1. user
7
  • 默认模块
    • 🦊一分钟,了解 Apifox !
    • 示例项目
      • /
      • Add a new pet to the store
      • Update an existing pet
      • Finds Pets by status
      • Find pet by ID
      • Deletes a pet
    • a
    • pet
      • uploads an image
      • Finds Pets by tags
      • Updates a pet in the store with form data
    • store
      • Returns pet inventories by status
      • Place an order for a pet
      • Find purchase order by ID
      • Delete purchase order by ID
    • user
      • Creates list of users with given input array
        POST
      • Get user by user name
        GET
      • Updated user
        PUT
      • Delete user
        DELETE
      • Logs user into the system
        GET
      • Logs out current logged in user session
        GET
      • Creates list of users with given input array
        POST
      • Create user
        POST
    • df
    • baidu
      GET
    • knife4j
      GET
    • a
      GET
    • c
      GET
    • 数据模型
      • 示例数据模型
      • Schemas
        • ApiResponse
        • Pet
        • Category
        • Tag
        • Order
        • User
      • RequestBodies
        • UserArray
      • test
  • test
    • lll
      GET
  1. user

Creates list of users with given input array

POST
/user/createWithList

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Body 参数application/json必填

示例
[
    {
        "id": 0,
        "username": "string",
        "firstName": "string",
        "lastName": "string",
        "email": "string",
        "password": "string",
        "phone": "string",
        "userStatus": 0
    }
]

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/user/createWithList' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[
    {
        "id": 0,
        "username": "string",
        "firstName": "string",
        "lastName": "string",
        "email": "string",
        "password": "string",
        "phone": "string",
        "userStatus": 0
    }
]'

返回响应

🟢200成功
application/json
successful operation
Bodyapplication/json

示例
{}
修改于 2025-07-30 03:27:05
上一页
Delete purchase order by ID
下一页
Get user by user name
Built with