Giter Club home page Giter Club logo

jod35 / author-api-v4 Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 1.0 218 KB

This is the final and complete version of the Author API I created using Flask and MySQL. It is a project I did while learning how to build Python Web Services using Flask. It contains concepts such as JWT Authentication. The API is deployed here https://authoapiv4.herokuapp.com/

Python 97.53% Mako 2.47%
flask mysql jwt-authentication relational-databases marshmallow-sqlalchemy rest-api

author-api-v4's Introduction

Author API V4

This is the improved and last version of the CRUD AuthorApi I created a while ago. I summarises most concepts I learned while building the recent versions. It includes JWT Authentication.

Users And Routes

To access book and author resources, You need to add the prefix /api to the root URL For example, GET http://authoapiv4.herokuapp.com/api/authors to get a list of users

Get authorization to access resources

To access the API, you will require to get an API Key. Visit https://authoapiv4.herokuapp.com/auth/signup to create an account Once created visit https://authoapiv4.herokuapp.com/auth/login to get an access token

ROUTE METHOD DESCRIPTION
/authors/ GET Get all authors alongside their books
/author/id GET Get an author with an id
/authors/ POST create a new author
/author/id PUT Update info for an author with an id
/author/id DELETE Delete an author with an id
/books/ GET Get all the books
/book/id GET Get a book with an id
/books/ POST Create a new book
/book/id PUT Update a book with a given id
/book/id PATCH Edit a book's description
/book/id DELETE Delete a book with a given id

Built With

  • Flask (web framework)
  • Flask-Marshmallow (Object Serialization and Deserialization)
  • Flask-SQLAlchemy (Object Relational Mapper for Flask and relational databases)
  • PyMySQL (Database Driver for MySQL and Python)
  • MySQL (An Open Source relational database)

Author

Ssali Jonathan(Jod35)

author-api-v4's People

Contributors

jod35 avatar

Stargazers

 avatar  avatar  avatar

Forkers

gaodelade

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.