This repository is a json-server created to feed data into the Tren Pedia React Application.
{
id,
name,
category,
brandId,
image,
description,
yt
}{
id,
name,
location,
yearCreated,
image,
description,
web
}| HTTP Method | URL | Request Body | Description |
|---|---|---|---|
| GET | /athletes |
Sends all athletes | |
| POST | /athletes |
{name, category, brandId, image, description, yt} | Creates a new athlete |
| GET | /athletes/:id |
Sends all details of a specific athlete | |
| PUT | /athletes/:id |
{name, category, brandId, image, description, yt} | Edits an athlete object |
| DELETE | /athletes/:id |
Deletes an athlete object | |
| GET | /brands |
Sends all brands | |
| POST | /brands |
{name, location, yearCreated, image, description, web} | Creates a new brand |
| GET | /brands/:id |
Sends all details of a specific brand | |
| PUT | /brands/:id |
{name, location, yearCreated, image, description, web} | Edits a brand object |
| DELETE | /brands/:id |
Deletes a brand object |