Skip to content

SergeyMoroz0703/flask-mongoDB-http-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-mongoDB-http-api

Here provided easy HTTP API wich support GET, POST method requests. I'm going to added another methods later.
API works with Mongo database, namely with users_db


CI

Travis CI: Build Status


Example of GET request for one user:
localhost:5000/users?name=James&surname=Bond&online=false or
requests.get(url='localhost:5000', params={"name": "James", "surname": "Bond", "online": "False"})
To get all users from database just send GET request with payload {}.

Example of POST request for add user to database:
user = {"name": "James", "surname": "Bond", "online": "False"}
requests.post(url='localhost:5000', data=json.dumps(user), headeds={"Content-Type": "application/json"}


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages