SendIT is a courier service that helps users deliver parcels to different destinations. SendIT provides courier quotes based on weight categories. This application is a python (Python 3.6.5) web api that works or uses flask framework (Flask) technlogy.
- Users can create an account and log in.
- Users can create a parcel delivery order.
- Users can change the destination of a parcel delivery order.
- Users can cancel a parcel delivery order.
- Users can see the details of a delivery order.
- Admin can change the status and present location of a parcel delivery order
- Admin can change the status of a parcel delivery order.
- Admin can change the present location of a parcel delivery order
Use the following endpoints to perform the specified tasks
EndPoint | Functionality
------------------------ | ----------------------
Get /parcels/ | Fetch all parcel delivery orders
Get /parcels/<int:parcel_id> | Fetch a specific parcel delivery order
POST /users/<int:user_id>/parcels | Fetch all parcel delivery orders by a specific user
PUT /parcels/<int:parcel_id>/cancel/ | Cancel the specific parcel delivery order
POST /parcels/ | Create a parcel delivery order
PUT /parcels/<int:parcel_id>/destinations | Change the location of a specific parcel delivery order
PUT /parcels/<int:parcel_id>/status | Change the status of a specific parcel delivery order
PUT /parcels/<int:parcel_id>/presentLocation | Change the present location of a specific parcel delivery order
Create a new directory and initialize git in it. Clone this repository by running
$ git clone https://github.com/BagzieGracious/SendItApiPersistent.gitCreate a virtual environment. For example, with virtualenv, create a virtual environment named venv using
$ virtualenv venvActivate the virtual environment
$ cd venv/scripts/activateInstall the dependencies in the requirements.txt file using pip
$ pip install -r requirements.txtStart the application by running
$ python run.pyTest this end point py running
$ pytest test_view.pyHeroku link
https://bagzie-send-it-persitent.herokuapp.com