GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Sravanksk/flask-rest-api

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
app.py
app.py
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

flask-rest-api

Python Flask CRUD API using SQL Alchemy and Marshmallow

List of API's

  1. Get all Products ( GET Request )

    http://127.0.0.1:5000/products
    
  2. Get Product by id ( GET Request )

    http://127.0.0.1:5000/product/<id>
    
  3. Create a Product ( POST Request )

    http://127.0.0.1:5000/product/     
    

    POST Request Body

    {
         "name" :"Name_Of_Product",
         "description" : "Description",
         "price" : 250000,
         "quantity" : 1
    }
    
  4. Delete a Product ( Delete Request )

    http://127.0.0.1:5000/product/<id>
    
  5. Update a Product ( PUT Request )

    http://127.0.0.1:5000/product/<id>  
    

    PUT Request Body

    {
         "name" :"Updated_Name",
         "description" : "Updated_Description",
         "price" : 250000,
         "quantity" : 1
    }
    

To run this API

  • Clone this repository

  • Create a virtual environment

    pip install virtualenv
    virtualenv venv
    source venv/bin/activate 
    
  • Install Requirements -

    pip install -r requirements.txt
    
  • Run application

    python app.py
    
  • Test your API using CURL or POSTMAN

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.