This section provides detailed information about the "Search Product" API endpoint.
Overview
The "Search Product" API endpoint allows users to search for products based on specific criteria. This endpoint is designed to facilitate easy access to product information, enhancing the user experience.
Endpoint URL
GET /API/Documentation/en/接口详情/搜索产品
Request Parameters
The following parameters are required to perform a product search:
- query: The search term or product identifier.
- category: The category of products to search within.
- limit: The maximum number of results to return.
- offset: The starting point of the result set.
Example Request
GET /API/Documentation/en/接口详情/搜索产品?query=shoes&category=sports&limit=10&offset=0
Response Format
The response will be in JSON format, containing the following fields:
- success: A boolean indicating whether the search was successful.
- message: A message providing additional information about the response.
- data: An array of product objects containing details about the search results.
Example Response
{
"success": true,
"message": "Search completed successfully.",
"data": [
{
"id": "12345",
"name": "Running Shoes",
"description": "Comfortable running shoes for all seasons.",
"price": 99.99,
"image": "https://example.com/images/running_shoes.jpg"
},
// More product objects...
]
}
Usage
To use this API endpoint, simply make a GET request to the /API/Documentation/en/接口详情/搜索产品
path with the required parameters.
For more information on API usage and best practices, please refer to our API Documentation.
Additional Resources
Running Shoes