API: Submission of a Product / Item (WIP/DRAFT!)
Prerequisites
In order to perform the sign up of a customer, you should have read our introduction on how our API is built and what basic concepts have been applied:
Variables
Throughout our tutorials, we will use Variables which are also part of our Postman collections:
{{API_URL_SHOP}}
: this covers the whole URL of the REST-API including the suffix for “shop”-related endpoints
Media preparation
In order to associate a product with certain media files, we must first prepare these media files before the product itself is created with them. For the sake of completeness, the reverse way would also work: first create a product without media files and add the media files later.
This process is covered in the following document: (TODO Link).
The request: creating the product resource
Request:
Method
POST
Endpoint
{{API_URL_SHOP}}/products
Request Code (Success)
204 - No Content
Response Body
(empty)
Request Body for a minimal version of a product:
Request Body for the full version of a product:
Last updated