Skip to content

papistan/booking-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Booking API

A simple API to create new moving trucks, create bookings and manage scheduled bookings

Requirements

For development, you will need Node.js and Yarn installed on your environement.

Install

$ git clone https://github.com/papistan/booking-api.git
$ cd api
$ yarn install

Start, watch and open in browswer

$ yarn start

Simple build for production

$ yarn build

Endpoints / Routes

GET

    api/jobs (list of all jobs)
    api/trucks (list of all trucks)

POST

    api/jobCreate (create a new job) - required inputs: name: string, date: string, startTime: Number, totalHours: Number
    api/truckCreate (list of all trucks) - required inputs: name: string, startTime: Number, endTime: Number

About

a rental booking API built with Express, Mongoose and MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published