E-Commerce
GameHub
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 GameHub model
| Prop | Type | Default | 
|---|---|---|
| id | string | - | 
| title | string | - | 
| description | string | - | 
| genre | string | - | 
| released | string | - | 
| ageRating | string | - | 
| price | float | - | 
| discountedPrice | float | - | 
| onSale | boolean | - | 
| image | string | - | 
| tags | Array<string> | - | 
| favorite | boolean | - | 
All products
GET/gamehub
Retrieve all products.
Single product
GET/gamehub/<id>
Retrieve a single product by its id.