94bbdb1552fabf4aad82688058446c7722073e85
I was too lazy to write this in a markdown file. And lazy enough to write this in English as well.
------------------------------------------------
Welp. Easy RESTful API and stuff.
Endpoints:
- GET | / | Sample root endpoint.
- GET | /docs | Swagger UI for testing the endpoints.
- GET | /users | List all users.
- GET | /users/{id} | Gets a user by its id in database.
- POST | /users | Adds a new user to the database.
Dependencies JIC you want to make your own virtual python environment:
- uvicorn | To run API apps
- fastapi | This project's API Framework
- pydantic | Data validation library
- sqlalchemy | Framework to operate databases with abstractions
Extra implementations:
- Database | SQLite3 Database file. /src/users.db
- UNIX | For UNIX based servers, for this API we only could include the UNIX based version virtual environment
Tested on:
- Windows
- Linux (WSL & Native) - Using Arch Linux.
Not tested on:
- BSD - FreeBSD and/or NetBSD.
- Docker.
- Micropython - ESP32.
- Other Python compatible systems.
Description
Languages
Python
99.3%
Shell
0.7%