Skip to content

danielTunwashe/PizzaAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License Twitter


PIZZA API


Table of Contents
  1. About PizzaAPI
  2. Lessons Learned
  3. Usage
  4. Sample
  5. License
  6. Contact
  7. Acknowledgements

back to top


About PizzaApi

PizzaAPI is an API built on Flask-RESTX framework and properly documented in swagger UI. This API consists of various endpoints such as authentication, signup, retrieving all orders etc.

This pizza delivery API was built by Daniel Tunwashe during Backend Engineering live classes at AltSchool Africa.

back to top

Built With:

Python Flask SQLite

back to top


Lessons Learned

Creating this API helped me learn and practice:

  • API Development
  • App Deployment with Heroku
  • Testing
  • Documentation
  • Debugging
  • Routing
  • Database Management
  • Internet Security
  • User Authentication
  • User Authorization
  • Swagger UI Documentation

back to top


Usage

To use this API, follow these steps:

  1. Open the Heroku app on your browser: https://flask-pizza-delivery-api-app.herokuapp.com/

  2. Click 'auth' to reveal a dropdown menu of authentication routes

  3. Register via the '/auth/signup' route, if you are a new user

  4. Sign in via the '/auth/login' route to generate a JWT token. Copy this access token without the quotation marks

  5. Scroll up to click "Authorize" at top right. Enter the JWT token in the given format, for example:

    Bearer this1is2a3rather4long5hex6string
    
  6. Click 'Authorize' and then 'Close'

  7. Now authorized, you can create, view, update and delete orders via the many routes in 'orders'

  8. When you're done, click 'Authorize' at top right again to then 'Logout'

back to top


Sample


PizzaAPI Screenshot


back to top


License

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

back to top


Contact

Daniel Tunwashe - @danielTunwashe - [email protected]

Project Link: PizzaAPI

back to top


Acknowledgements

This project was made possible by:

back to top


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages