SQLAlchemy - 2.0.4
-
Command:
git clone https://github.com/ronik-v/questions_web_api.git
-
Command:
docker-compose build
-
Database:
CREATE DATABASE question_quiz;
Run file: .\questions_web_api\data\database.py
-
Command:
docker-compose up
- File with libraries versions
from requests import post
url = 'http://localhost:9000/questions_api
_json = {'questions_num': 100}
result = post(url, json=_json)
print(result.json())
This post request returns the last question added to the database, filtering out duplicates and at the same time saving as many queries as were specified in the post request in the 'questions_num' parameter
Apache License 2.0, details here