Skip to content

SimonAwiti/sentIT-endpoints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: MIT Coverage Status Build Status

sentIT Application

sentIT application endpoints

The following are API endpoints enabling one to:

  • Create account and log in
  • Create a parcel delivery order
  • Change the destination of the parcel through editing
  • View the made parcel orders details
  • Delete a made parcel order
  • View all parcel orders created

Here is a list of the functioning endpoints

EndPoint Functionality Actual routes
GET /parcel order Get all available orders /api/v1/orders/
GET /parcel order/ Fetch a single order details /api/v1/orders/
Edit /parcel order/ Changin the details of the order /api/v1/orders/
PUT /parcel order/ Cancel a single parcel order /api/v1/orders/
POST /parcel order Create a parcel order /api/v1/orders/
POST /users User log in /api/v1/users/login
POST /users User registration /api/v1/users/register

Extra endpoints include

  • Admin can be able to add another admin

Testing the endpoints

  • Install python then using pip install .. install flask
  • clone the repo
  • Ensure that postman is installed
  • From your terminal locate the repo and run: python run.py
  • open postman and test the endpoints
  • Use unittest to run the the tests

Setting up and how to start the application

  • Install python then using pip instal .. install flask
  • clone the repo
  • From your terminal Ensure that the virtual environment is activated
  • From the terminal locate the repo and run: python run.py

Technology used

  • Python 3.6
  • Flask framework
  • Unittest for testing

Background context

Published POSTMAN documentation Documentation

Written by: Simon Awiti

Copyright © Andela 2018

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages