josemiguel02 / my-api-rest-flask

This basic project is a Rest API developed with the Python Flask framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API REST with Flask, SQLAlchemy and SQLite

Table of Content

About The Project

Demo

Description

This basic project is a Rest API developed with the Python Flask framework, which also uses an SQLite database that stores tasks and uses the SQLAlchemy ORM.

Built With

flask

sqlite

Installation

  1. Clone the repo and change "my-project" to your project name.
  git clone https://github.com/josemiguel02/my-api-rest-flask.git ./my-project
  1. Go to the project directory
  cd my-project
  1. Install dependencies
  pip install -r requirements.txt

Usage

Start the server

  python app.py

Running on: http://localhost:5000

API Reference

Get all tasks

  GET /todos

Create task

  POST /create

Get single task

  GET /todo/<id>
Parameter Type Description
id string Required. ID of task

Edit task

  PUT /edit/<id>
Parameter Type Description
id string Required. ID of task

Delete task

  DELETE /delete/<id>
Parameter Type Description
id string Required. ID of task

Contact

About

This basic project is a Rest API developed with the Python Flask framework.


Languages

Language:Python 99.2%Language:Procfile 0.8%