Skip to content

BagzieGracious/SendItApiPersistent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status

SendItApi

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.

Application Features

  • 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

Application Endpoints :

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

Installation

Create a new directory and initialize git in it. Clone this repository by running

$ git clone https://github.com/BagzieGracious/SendItApiPersistent.git

Create a virtual environment. For example, with virtualenv, create a virtual environment named venv using

$ virtualenv venv

Activate the virtual environment

$ cd venv/scripts/activate

Install the dependencies in the requirements.txt file using pip

$ pip install -r requirements.txt

Start the application by running

$ python run.py

Test this end point py running

$ pytest test_view.py

Heroku link

https://bagzie-send-it-persitent.herokuapp.com

About

You can now track your parcel delivery with sendIt. You can track from shipment to delivery.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors