Get List
GET/api/products
API Endpoint: Get Products
This endpoint retrieves a list of products from the UdyogX application. It is primarily used to fetch product data for display or processing in client applications.
Request
- Method: GET
- URL:
https://app.udyogx.in/api/products
Expected Input Parameters
This endpoint does not require any input parameters in the query string.
Response Structure
The response will be in JSON format and typically includes the following fields:
products
: An array of product objects, where each object contains details about a specific product, such as:id
: Unique identifier for the product.name
: The name of the product.description
: A brief description of the product.price
: The price of the product.available_stock
: The current stock level for the product.
Example Response
{
"products": [
{
"id": "123",
"name": "Sample Product",
"description": "This is a sample product.",
"price": 29.99,
"available_stock": 100
},
...
]
}
This structure allows clients to easily parse and utilize the product information as needed.
Responses
- 200