This document provides guidelines and examples for Parcel Delivery APIs, encouraging consistency, maintainability, and best practices across applications. Parcel Delivery APIs aim to balance a truly RESTful API interface with a positive developer experience.
- Frontend: Html, CSS, Javascript
- Backend: NodeJS & ExpressJS
- Database: PostgreSQL
npm init
npm install
npm run test
npm update
npm start
Methods | Endpoints | Actions |
---|---|---|
GET | api/v1/parcels | Fetch all parcels orders |
GET | /api/v1/parcles/:parcelId | Fetch a specific parcel delivery order |
GET | /api/v1/users/:userId/parcels | Fetch all parcel delivery orders by a specific user |
PUT | /api/v1/parcels/:parcelId/cancel | Cancel the specific delivery order |
POST | /api/v1/parcels | Create a parcel delivery order |
PUT | /api/v1/parcels/:parcelId/status | Change the status of specific delivery order |
PUT | /api/v1/parcels/:parcelId/presentLocation | Change the present location of a specific parcel delivery order |
POST | /api/v1/auth/signup | Register a user |
POST | /api/v1/auth/login | Login a user |
PUT | /api/v1/parcels/:parcelId/destination | Change the location of a specific parcle delivery order |
To get started, you must call your css file in your html page
Paragraphs: exo Heading: Krub
Wrap element with max width of 1280px
.container
Hide element
.hide
Hide element on large screen
.hide-on-large
Hide element on medium screen
.hide-on-medium
Hide element on small screen
.hide-on-small
Initiate border
.border
White
.b-lite
Grey
.b-grey
Red
.b-red
Black
.b-red
Indigo
.b-indigo
.clear
Center
.center-align
Left
.left-align
Right
.right-align
-h- indicate that the property is applied horizontally on a given selector -v- indicate that the property is applied veritically on a given selector
Small padding
.s-padding
.s-h-padding
.s-v-padding
Medium padding
.m-padding
.m-h-padding
.m-v-padding
Large padding
.l-padding
.l-h-padding
.l-v-padding
Extra large padding
.xl-padding
.xl-h-padding
.xl-v-padding
Extra large padding
.xxl-padding
.xxl-h-padding
.xxl-v-padding
-h- indicate that the property is applied horizontally on a given selector -v- indicate that the property is applied veritically on a given selector
Small margin
.s-margin
.s-h-margin
.s-v-margin
Medium margin
.m-margin
.m-h-margin
.m-v-margin
Large padding
.l-margin
.l-h-margin
.l-v-margin
Extra large padding
.xl-margin
.xl-h-margin
.xl-v-margin
Extra large padding
.xxl-margin
.xxl-h-margin
.xxl-v-margin
Small text
.s-text
Medium text
.m-text
Large text
.l-text
Extra large text
.xl-text
Extra-extra large text
.xxl-text
Grid must be wrap in row
.row
Small | Medium | Large | |
---|---|---|---|
Prefix | .s |
.m |
.l |
White
.white
Black
.black
Grey
.grey
Indigo
.indigo
-
Add
text-
prefix before the defined color class to apply it on text -
darken-1
,darken-2
anddarken-3
gives option to play with strongness of the color
Input, textarea, radio, checkbox and button must be in .input-field
div
or p
<div class="input-field">
<label for="email">Email</label>
<input type="email" id="email" placeholder="your email">
</div>
Initiate button
.btn
If your wrap to wrap image to fix the width of a container, you must add .image
in the parent container of a image