Skip to content

Robert-Such/REST-API-with-Docker-Flask-and-MySQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API with Docker, Flask, and MySQL

  • This project is to demonstrate the use of a REST API.
  • Docker Compose is being utilized to setup a python flask app and a mysql server which will load data from the db/init.sql file during the first start up of the database.
  • The flask framework is being used to create the REST.
  • Postman is being used to test the GET, POST, PUT, and DELETE request methods to verfiy records can be retrieved, created, updated, and deleted.

Screenshot showing postman listing all records via GET Request:

postman all records

Screenshot of postman showing one record via GET request:

postman one record

Screenshot showing postman creating a record by showing the POST request:

postman one record

Screenshot showing postman list new record in record listing:

postman one record

Screenshot showing postman editing a record by showing the PUT request:

postman one record

Screenshot showing postman list the edited record in record listing:

postman one record

Screenshot showing postman deleting a record by showing the DELETE request:

postman one record

Screenshot in postman demonstrating that the record in question has been deleted:

postman one record

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published