Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

marselester/api-example-based-on-flask

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

API Example based on Flask

This repository is used as example Flask project in API based on Flask post.

Consider Flask application from messaging package as deployed on https://app.example.com. You can sign in there as user marsel (password is 123). WSGI application from messaging_api module should be assumed as deployed on https://api.example.com.

Install requirements and run gunicorn.

$ pip install -r requirements.txt
$ gunicorn -b 127.0.0.1:5000 messaging:app
$ gunicorn -b 127.0.0.1:8000 messaging_api:app

Sign in on http://127.0.0.1:5000 and now you can try to make authenticated requests to API http://127.0.0.1:8000/v3/messages/.

About

API example based on Flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages