⚙️
SGI API Docs
  • Welcome!
  • Khởi động nhanh
  • API Đám mây
    • Tổng quan
      • Quyền riêng tư & Bảo mật dữ liệu
    • Bắt đầu
      • Thêm số điện thoại
      • Di chuyển số WhatsApp hiện có sang tài khoản doanh nghiệp
    • Bắt đầu dành cho BSP
    • Thiết lập Webhooks
    • Hướng dẫn
    • Tài liệu tham khảo
    • Payments API - SG
    • Câu hỏi thường gặp
    • Troubleshooting
    • Mã lỗi
  • THAM KHẢO
    • Tham khảo AP
      • Ứng dụng
      • Người dùng
  • CÔNG BỐ BẢN QUYỀN SGI
    • Bản quyền Hệ sinh thái
    • Điều khoản sử dụng
    • Chính sách bảo mật
Powered by GitBook
On this page
  1. THAM KHẢO
  2. Tham khảo AP

Người dùng

PreviousỨng dụngNextBản quyền Hệ sinh thái

Last updated 1 year ago

Rất vui được biết: Tất cả các phương pháp được hiển thị dưới đây được đồng bộ hóa với một URL tệp Swagger ví dụ và được cập nhật tự động với các thay đổi đối với API.

Hành động của người dùng

Tạo người dùng

Logs user into the system

get
Query parameters
usernamestringRequired

The user name for login

passwordstringRequired

The password for login in clear text

Responses
200
successful operation
Responsestring
400
Invalid username/password supplied
get
GET /v2/user/login HTTP/1.1
Host: petstore.swagger.io
Accept: */*
text

Logs out current logged in user session

get
Responses
default
successful operation
get
GET /v2/user/logout HTTP/1.1
Host: petstore.swagger.io
Accept: */*
default

successful operation

No content

  • GETLogs user into the system
  • GETLogs out current logged in user session
  • POSTCreates list of users with given input array
  • POSTCreates list of users with given input array

Creates list of users with given input array

post
Body
idinteger · int64Optional
usernamestringOptional
firstNamestringOptional
lastNamestringOptional
emailstringOptional
passwordstringOptional
phonestringOptional
userStatusinteger · int32Optional

User Status

Responses
default
successful operation
post
POST /v2/user/createWithList HTTP/1.1
Host: petstore.swagger.io
Content-Type: application/json
Accept: */*
Content-Length: 128

[
  {
    "id": 1,
    "username": "text",
    "firstName": "text",
    "lastName": "text",
    "email": "text",
    "password": "text",
    "phone": "text",
    "userStatus": 1
  }
]
default

successful operation

No content

Creates list of users with given input array

post
Body
idinteger · int64Optional
usernamestringOptional
firstNamestringOptional
lastNamestringOptional
emailstringOptional
passwordstringOptional
phonestringOptional
userStatusinteger · int32Optional

User Status

Responses
default
successful operation
post
POST /v2/user/createWithArray HTTP/1.1
Host: petstore.swagger.io
Content-Type: application/json
Accept: */*
Content-Length: 128

[
  {
    "id": 1,
    "username": "text",
    "firstName": "text",
    "lastName": "text",
    "email": "text",
    "password": "text",
    "phone": "text",
    "userStatus": 1
  }
]
default

successful operation

No content