- Logic: Python
- API Framework: FastAPI
- Validation: Pydantic
- Database: MongoDB
- Unit Testing: DocTest
All endpoints must return JSON compatible data.
- API Root
/
Swagger Docs - API Version
/version
() -> String- HTTP Method: GET
- Create User
/create-user
(User) -> Bool- HTTP Method: POST
- Read Users
/read-users
(Query) -> Array[User]- HTTP Method: PUT
- Update Users
/update-users
(Query, Update) -> Bool- HTTP Method: PATCH
- Delete Users
/delete-users
(Query) -> Bool- HTTP Method: DELETE
/app/
Application Package__init__
api.py
API Filedatabase.py
Database Interfacegenerators.py
Random Generatorsseeds.py
DB Seed Scriptutilities.py
General Toolsvalidation.py
Data Validation Schema
.env
Environment VariablesProcfile
Server Run Scriptrequirements.txt
Dependenciesrun.sh
Local Run Script
The following classes are used to validate incoming data to the API.
name
Required String (maxLength: 128 minLength: 3)age
Required Integer (maximum: 120, minimum: 1)email
Required String(EmailStr)active
Optional Booleanscore
Required Float (maximum: 1, minimum: 0)
name
Optional String (maxLength: 128 minLength: 3)age
Optional Integer (maximum: 120, minimum: 1)email
Optional String(EmailStr)active
Optional Booleanscore
Optional Float (maximum: 1, minimum: 0)
name
Optional String (maxLength: 128 minLength: 3)age
Optional Integer (maximum: 120, minimum: 1)email
Optional String(EmailStr)active
Optional Booleanscore
Optional Float (maximum: 1, minimum: 0)