INTRODUCTION This application provides RESTFUL endpoints to the bucketlist application.
FEATURES
A user can be able to signup. A user can be able to login.
TECHNOLOGIES USED
-
Flask mocroframework
-
Postgres database
HOW TO INSTALL THE APPLICATION
-
Make a directory
mkdir bucketlist
-
change directory to the created folder
cd bucketlist
-
create virtual environment
virtualenv venv
-
activate the virtual environment and install contents in the requirements file
pip install -r requirements.txt
-
clone the repository
git clone https://github.com/ogomb/RESTFULAPI_BUCKETLIST.git
on the root folder. -
export this variables
source .env
-
create postgres database
createdb YOURDATABASENAME
this should match DATABASE_URL DATABASE in .env file
createdb test_api
-
Run the test using the following code
python test_apis.py
-
Run the application using the following code
python run.py
API ENDPOINTS
Endpoint | Public access |
---|---|
POST /auth/register | TRUE |
POST /auth/login | TRUE |
POST /auth/logout | TRUE |
POST /auth/reset-password | TRUE |
POST /bucketlists/ | FALSE |
GET /bucketlists/ | FALSE |
GET /bucketlists/ | FALSE |
PUT /bucketlists/ | FALSE |
DELETE /bucketlists/ | FALSE |
POST /bucketlists//items/ | FALSE |
PUT /bucketlists//items/<item_id> | FALSE |
DELETE /bucketlists//items/<item_id> | FALSE |