A simple and scalable REST API built with Flask, designed for handling CRUD operations on a sample resource.
This project is a RESTful API implemented using the Flask framework. It provides endpoints for creating, reading, updating, and deleting resources.
The project aims to demonstrate and emulate best practices in API development, including proper routing, error handling, and documentation.
- CRUD operations on a sample resource
- Input validation and error handling
- Token-based authentication (JWT)
- API documentation with OpenAPI
- Unit and integration tests
- Python 3.8+
pip
package manager
-
Clone the repository:
git clone https://github.com/jmodeorain14/python-flask-rest-api.git cd python-flask-rest-api
-
Create a virtual environment:
python3 -m venv .venv source .venv/bin/activate # On Windows use `.venv\Scripts\activate`
-
Install dependencies
pip install -r requirements.txt
-
Run the application
flask run
After installation, you can start the API server using:
flask run
By default, the server will run on http://127.0.0.1:5000
.
To be completed by [@jmodeorain14]
To be completed by [@jmodeorain14]
To be completed by [@jmodeorain14]
This is a personal project, however, I welcome contributions from the community.
To contribute:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Commit your changes with descriptive messages.
- Push your branch to your fork.
- Open a pull request to the main repository.
Please ensure you follow the Conventional Commits standard for commit messages.
This project is licensed under the MIT License. See the LICENSE file for more details.