products
Create a new product
Creates a new product entry.
post/products
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.
Request body
Example request
{
"name": "Product 1",
"description": "This is a product",
"price": 100,
"stock": 100,
"category": "Category 1"
}Response
Product created successfully
Example response
{
"status": "success",
"status_code": 201
}Changes
No recorded changes to this operation across all 15 revisions of this API.