Skip to content

sean-ashley/sizer-backend

Repository files navigation

[Sean Ashley LinkedIn][https://www.linkedin.com/in/sean-ashley/] [Joseph Lamonica LinkedIn][https://www.linkedin.com/in/shivam-sh/] [Shivam Sharma LinkedIn][https://www.linkedin.com/in/giuseppelamonica/] [Nicholas Palmar LinkedIn][https://www.linkedin.com/in/nicolas-palmar/]


Logo

SIZR Backend

Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgements

About The Project

This is the backend of the SIZR project, working to store users in the database and generate shoe recommendations

Built With

Getting Started

To use the app you need to interact with one of the endpoints at https://sizr-backend.azurewebsites.net/

Usage

To use the backend, you can interact with the endpoints on postman.

Here is how to use each one.

"/adduser", methods = ["POST"]

ENTER https://sizr-backend.azurewebsites.net/adduser in Postman Make sure method is set to post. Go to raw, and make sure it is set to JSON.

In the body, pass a JSON object looking something like this

    {
    "username" : "seanashley",
    "length" : 28.5,
    "width"  : 10.5,
    "gender" : "m",
    "like_bigger_fitting_shoes" : true,
    "like_smaller_fitting_shoes" : false,
    "min_price" : 50,
    "max_price" : 150
 }

Send the postman request and it should return the user, showing that this has succeeded

'/recommendshoes', methods = ["POST"]

ENTER https://sizr-backend.azurewebsites.net/recommendshoes in Postman Make sure method is set to post. Go to raw, and make sure it is set to JSON.

In the body, pass a JSON object looking something like this

    {
    "username" : "seanashley"
    }

The backend will then return a json looking something like this for example, with the top recommended shoes and sizes

{"index":{"0":11,"1":15,"2":18},"name":{"0":"DON Issue 1","1":"Mamba Focus","2":"Harden
Stepback"},"brand":{"0":"Adidas","1":"Nike
","2":"Adidas"},"price":{"0":99.99,"1":99.99,"2":79.99},"size_shift":{"0":0.5,"1":0.5,"2":0.5},"picture":{"0":"pictures\/don-issue-1.png","1":"pictures\/mamba-focus.png","2":"pictures\/adidas-Harden-Stepback.jpeg"},"US
Size":{"0":8.0,"1":8.0,"2":8.0}}

License

Distributed under the Apache License. See LICENSE for more information.

Contact

Sean Ashley - sean.d.ashley@gmail.com Joseph Lamonica - g.lamonica02@gmail.com Nicolas Palmar - nicolas.palmar8@gmail.com Shivam Sharma - shivam.sharm@icloud.com

About

Hack The North Backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •