Skip to content

A rest api made with flask, postgresql and the test with junit

License

Notifications You must be signed in to change notification settings

indianazaraza/api_flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

README.md

A rest api made with flask and postgresql.

Requirements:

pip install flask flask-sqlalchemy flask-marshmallow psycopg2

You must have the categories database created.

Then you need to go to the app.py file, change the database user and password to your own on the line 7 and run the file.

The api creates the products table along with the fields: id, name and description.

You can perform crud operations based on different routes: GET, POST, PUT and DELETE.

You can see the documentation made with postman.

The test were done with Junit 5 and REST-assured. They validate each method of the api and were also tested in different cases where the data was missing, random or wrong.