Download OpenAPI specification:
A simple REST API for managing products with JWT authentication
Authenticate a user and receive a JWT token
username required | string The username for authentication |
password required | string <password> The password for authentication |
{- "username": "admin",
- "password": "password"
}
{- "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
- "expires_in": 3600
}
Create a new product (asynchronous operation)
name required | string non-empty The name of the product |
{- "name": "Awesome Widget"
}
{- "id": "123e4567-e89b-12d3-a456-426614174000",
- "message": "Product creation started. It will be available in 5 seconds.",
- "status": "pending"
}