This project is a simple API for managing categories and posts using FastAPI and AbarORM. AbarORM is a lightweight and efficient ORM for SQLite that makes database interaction easy.
- Manage categories and posts
- Use AbarORM for SQLite database interaction
- Quick and easy API implementation with FastAPI
To install and set up this project, follow these steps:
-
Clone the Repository
git clone fastapi-abarorm cd fastapi-abarorm -
Install Dependencies Use pip to install the dependencies:
pip install -r requirements.txt
-
Run the Application To run the application, execute the following command:
python main.py
Once the application is running, you can access the API at http://localhost:8000/docs.
- Categories
GET /categories/- List all categoriesPOST /categories/- Create a new categoryGET /categories/{id}/- Get details of a specific categoryPUT /categories/{id}/- Update a categoryDELETE /categories/{id}/- Delete a category
- Posts
GET /posts/- List all PostsPOST /posts/- Create a new PostsGET /posts/{id}/- Get details of a specific PostsPUT /posts/{id}/- Update a PostsDELETE /posts/{id}/- Delete a Posts
- Ensure that SQLite is installed on your system.
- To create the database, simply run the application once, and AbarORM will automatically create the database.
If you would like to contribute to this project, we welcome your feedback and suggestions!