This repository contains a Restful API project developed in Flask, with PUT, POST and DELETE methods implemented.
- GET: Used to retrieve information from existing resources.
- PUT: Used to update an existing resource.
- POST: Used to create a new resource.
- DELETE: Used to delete an existing resource.
##Installation
- Clone the repository:
git clone https://github.com/seu-usuario/flask-Apifull.git
- Create a virtual environment:
python -m venv venv
- Asset or virtual environment:
- Without Windows:
venv\Scripts\activate
- Without Linux/Mac:
source venv/bin/activate
- Without Windows:
- Install dependencies:
pip install -r requirements.txt
- Run an application:
python rest-main-api.py for flask-apifull application or main.py for rest application
After installing and running the application, you can use the following routes:
- GET:
http://localhost:5000/api//dev/
- PUT:
http://localhost:5000/api//dev/{id}
- POST:
http://localhost:5000/api//dev/
- DELETE:
http://localhost:5000/api//dev/}
Make sure to replace {id}
with the ID of the desired resource.
Feel free to contribute improvements, new features or bug fixes. Just follow the steps below:
- Fork the repository
- Create a branch for your modification:
git checkout -b feature/nova-feature
- Commit your changes:
git commit -am 'Adding new feature'
- Push to a branch:
git push origin feature/nova-feature
- Create a pull request
If you have any questions or suggestions, please contact us via email: [email protected]