项目作者: mukesh300

项目描述 :
FLASK REST boilerplate with JWT
高级语言: Python
项目地址: git://github.com/mukesh300/webservice.git
创建时间: 2021-05-26T08:37:45Z
项目社区:https://github.com/mukesh300/webservice

开源协议:MIT License

下载


FLASK REST BOILER-PLATE WITH JWT

Want to use this project?

Basics

  1. Fork/Clone
  2. Activate a virtualenv
  3. Install the requirements

Create the tables and run the migrations:

  1. $ python manage.py create_db
  2. $ python manage.py db init
  3. $ python manage.py db migrate

Viewing the app

  1. Open the following url on your browser to view swagger documentation
  2. http://127.0.0.1:5000/

Using Postman

  1. Authorization header is in the following format:
  2. Key: Authorization
  3. Value: "token_generated_during_login"
  4. For testing authorization, url for getting all user requires an admin token while url for getting a single
  5. user by public_id requires just a regular authentication.