コード例 #1
0
def create_parcel():
    """Create a parcel function wrapped around the Post /parcels endpoint"""
    return Parcel_Controller.create_parcel()
コード例 #2
0
def change_status(parcel_id):
    """Cancel a particular parcel delivery order by a user"""
    return Parcel_Controller.change_parcel_status(parcel_id)
コード例 #3
0
def change_destination(parcel_id):
    return Parcel_Controller.change_parcel_destination(parcel_id)
コード例 #4
0
def get_parcel(parcel_id):
    """Retrieve a particular parcel"""
    return Parcel_Controller.get_parcel(parcel_id)
コード例 #5
0
def change_location(parcel_id):
    """Change the present location of a parcel delivery order"""
    return Parcel_Controller.change_present_location(parcel_id)
コード例 #6
0
def get_cancelled_parcels_by_user(user_id):
    """Retrieve all cancelled parcels by a specific user"""
    return Parcel_Controller.get_cancelled_parcels_by_user(user_id)
コード例 #7
0
def get_pending_parcels_by_user(user_id):
    """Retrieve all pending parcels by a specific user"""
    return Parcel_Controller.get_pending_parcels_by_user(user_id)
コード例 #8
0
def get_intransit_parcels_by_user(user_id):
    """Retrieve all intransit parcels by a specific user"""
    return Parcel_Controller.get_intransit_parcels_by_user(user_id)
コード例 #9
0
def parcels():
    """Retrieve all parcels"""
    return Parcel_Controller.get_parcels()
コード例 #10
0
def index():
    """Index page"""
    return Parcel_Controller.index()