Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.74 KB

README.md

File metadata and controls

49 lines (32 loc) · 1.74 KB

Restful API with Flask

This repository contains a Restful API project developed in Flask, with PUT, POST and DELETE methods implemented.

Screenshot_5

Functionalities

  • 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

  1. Clone the repository: git clone https://github.com/seu-usuario/flask-Apifull.git
  2. Create a virtual environment: python -m venv venv
  3. Asset or virtual environment:
    • Without Windows: venv\Scripts\activate
    • Without Linux/Mac: source venv/bin/activate
  4. Install dependencies: pip install -r requirements.txt
  5. Run an application: python rest-main-api.py for flask-apifull application or main.py for rest application

Usage

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.

Contribution

Feel free to contribute improvements, new features or bug fixes. Just follow the steps below:

  1. Fork the repository
  2. Create a branch for your modification: git checkout -b feature/nova-feature
  3. Commit your changes: git commit -am 'Adding new feature'
  4. Push to a branch: git push origin feature/nova-feature
  5. Create a pull request

Contact

If you have any questions or suggestions, please contact us via email: [email protected]