E-CommerceSquare Eyes
Square Eyes
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 Square Eyes model
Prop | Type | Default |
---|---|---|
id | string | - |
title | string | - |
description | string | - |
genre | string | - |
rating | string | - |
released | string | - |
price | float | - |
discountedPrice | float | - |
onSale | boolean | - |
image | object | - |
tags | Array<string> | - |
favorite | boolean | - |
All products
GET/square-eyes
Retrieve all products.
Single product
GET/square-eyes/<id>
Retrieve a single product by its id.