Pet Store
  1. User Service
Pet Store
  • User Service
    • Add steps into the doc
    • User Service
      • Overview
      • Notice
      • Login
        POST
      • Add a new pet to the store
        POST
      • Update an existing pet
        PUT
      • Deletes a pet
        DELETE
      • Find pet by ID
        GET
      • Finds Pets by status
        GET
      • discriminator with mapping
        POST
    • Order Service
      • Find order by id
      • Check
    • AI Model
      • Google AI Studio
    • Schemas
      • Sample Schemas
        • Pet
        • Category
        • Tag
  • Order Service
    • Get list
      GET
    • Add a list
      POST
    • Update list
      PUT
    • New Request
      GET
    • Schemas
      • List
  1. User Service

Login

Developing
POST
/v1/login

Request

Authorization
API Key
Add parameter in header
X-API-Key
Example:
X-API-Key: ********************
API Key
Add parameter in query
token
Example:
token: ********************
or
Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/login?token=<api-key>' \
--header 'Authorization: Bearer {{OPENAI_API_KEY}}' \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "username": "testuser",
    "password": "123456"
}'
Response Response Example
{
    "code": 0,
    "data": {
        "ACCESS_TOKEN": "string"
    }
}
Modified at 2025-08-13 09:02:20
Previous
Notice
Next
Add a new pet to the store
Built with