Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 1.24 KB

README.md

File metadata and controls

54 lines (37 loc) · 1.24 KB

jykSports_BackEnd

This is the back end for the project Jyk Sports. Here you will find how API works.

First step

You need to create an user and the Api created to generate the action is https://jyksports-backend.onrender.com/api/users and the method is POST :

{
    "firstName": "xxxx",
    "lastName":"xxxx",
    "password":"xxxx",
    "role":"USER",
    "email":"xxxxx",
    "userName":"xxxx",
    "profilePicture":"https://source.unsplash.com/random/100x100"
}

To login the API is https://jyksports-backend.onrender.com/auth/local/login

{
   "email":"xxxxx",
   "password":"xxxx"
  
}

To create products https://jyksports-backend.onrender.com/api/products with the method POST : :

{
    "reference": "xxxx",
    "brand":"xxxx",
    "color":"xxxx",
    "size":"xxx",
    "amount":"xxxxx",
    "image":"https://source.unsplash.com/random/100x100"
    
}

To have a search you will need the following API https://jyksports-backend.onrender.com/api/products/filter?brand=Adidas&size=36&color=Red there you can write the products that you want to see

Captura de pantalla 2023-02-14 105340