Skip to content

MateoSancho/Data-for-Project-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tren Pedia - Server

This repository is a json-server created to feed data into the Tren Pedia React Application.

Server Structure

Collections

athletes

{
  id,
  name,
  category,
  brandId,
  image,
  description,
  yt
}

brands

{
  id,
  name,
  location,
  yearCreated,
  image,
  description,
  web
}

Used API Endpoints in the App

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

Links

Collaborators

Mateo - Full Stack Developer & Gym Enthusiast

Project

Repository Link Client

Repository Link Server

Deploy Link

Slides

Slides Link

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors