1. Authentication
pws-shop-api
  • Authentication
    • Send verification code for registration
      POST
    • Send verification code for password reset
      POST
    • Register a new user
      POST
    • Login user
      POST
    • Reset password
      POST
  • 数据模型
    • SendVerificationCodeRequest
    • RegisterRequest
    • LoginRequest
    • LoginResponse
    • ResetPasswordRequest
  1. Authentication

Login user

POST
/auth/login
Authenticate user and return access token

请求参数

Body 参数application/json必填

示例
{
    "email": "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 'https://pwshop-api.smooretechtest.com/api/auth/login' \
--header 'Content-Type: application/json' \
--data '{
    "email": "string",
    "password": "string"
}'

返回响应

🟢200
application/json
Login successful
Bodyapplication/json

示例
{
    "access_token": "string",
    "token_type": "bearer"
}
🟠401
🟠403
修改于 2026-05-29 08:18:41
上一页
Register a new user
下一页
Reset password
Built with