products
Get a product
Get a product entry.
get/products/{product_id}
Request
- Base URLhttps://staging.api-golang.boilerplate.hng.tech/api/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
product_idstring required
The id of the product to be retrieved
Example:1
Response
Product retrieved successfully
Example response
{
"id": "1",
"name": "Product 1",
"description": "This is a product",
"price": 100,
"stock": 100,
"category": "Category 1"
}Changes
No recorded changes to this operation across all 15 revisions of this API.