Search
K
Product Inventory API

Product Inventory API

1.0.0OAS 3.1
API Base URL
  • Server 1:https://api.apiprimer.com
Security
ApiKeyAuth (apiKey)

An API key is a token that you provide when making API calls. Include the token in a header parameter called X-API-Key.

Example: X-API-Key: 123

Retrieve a list of products

get
https://api.apiprimer.com/products

Response

200

Successful operation

get/products
 
200

Create a new product

post
https://api.apiprimer.com/products

Body

application/json
namestring

Name of the product

descriptionstring

Product description

pricenumber(float)

Price of the product

Response

201

Product created successfully

post/products

Body

{}
 
201