BasicOnline Shop
Online Shop
These endpoints allow you to retrieve all products, or a single product by its id. The response will be an array of JSON objects if you request all products, or a single JSON object if you request a single product.
The Online Shop model
Prop | Type | Default |
---|---|---|
id | string | - |
title | string | - |
description | string | - |
price | float | - |
discountedPrice | float | - |
image | object | - |
rating | integer | - |
tags | Array<string> | - |
reviews | Array<Review> | - |
All products
GET/online-shop
Retrieve all online shop products and its associated reviews.
Single product
GET/online-shop/<id>
Retrieve a single online shop product and its associated reviews by product id.