إنشاء قائمة مستخدمين
إنشاء قائمة بالمستخدمين باستخدام قائمة المدخلات المحددة.
POST https://petstore3.swagger.io/api/v3/user/createWithList
أمثلة
- API Key
- OAuth 2.0
cURL
POST "https://petstore3.swagger.io/api/v3/user/createWithList" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-H "api_key: <YOUR_API_KEY>" \
-d \
[
{
"id": 0,
"username": "سلسلة",
"firstName": "سلسلة",
"lastName": "سلسلة",
"email": "سلسلة",
"password": "سلسلة",
"phone": "سلسلة",
"userStatus": 0
}
]
cURL
POST "https://petstore3.swagger.io/api/v3/user/createWithList" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR_OAUTH_TOKEN>" \
-d \
[
{
"id": 0,
"username": "سلسلة",
"firstName": "سلسلة",
"lastName": "سلسلة",
"email": "سلسلة",
"password": "سلسلة",
"phone": "سلسلة",
"userStatus": 0
}
]
الردود
| الرمز | الوصف |
|---|---|
| 200 | عملية ناجحة |
| default | عملية ناجحة |
مثال على الرد
200: عملية ناجحة
Response
{
"id": 0,
"username": "سلسلة",
"firstName": "سلسلة",
"lastName": "سلسلة",
"email": "سلسلة",
"password": "سلسلة",
"phone": "سلسلة",
"userStatus": 0
}
المعلمات
نص الطلب
| الاسم | النوع | الوصف |
|---|---|---|
body | Array of كائن Users | مطلوب. قائمة كائنات User المراد إنشاؤها. |