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
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"}