Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlightInsuranceAPi

Instalation

If you are not using docker please install mongo db and start mongo db server
git clone https://github.com/npalgit/FlightInsurance.git
npm install
npm dev

Docker

You can also use docker for development.

Start the services

docker-compose up -d

Indices

  • Default

    • http://localhost:3000/getAuthToken
    • http://localhost:3000/FlightInsurance

Default

Endpoint:

Method: GET
Type: RAW
URL: http://localhost:3000/getAuthToken

Endpoint:

Method: POST
Type: RAW
URL: http://localhost:3000/FlightInsurance

Headers:

Key Value Description
Authorization bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiaWF0IjoxNTg0MzU2NTYyfQ.t9tKgCIecHq9iHEKR5Vezb2RBmJhU4YorzgW3GH9d9E

Body:

{
	"firstName": "TestFn",
	"lastName": "TestLn",
	"email": "a4@b.com",
	"policyNumber": 123,
	"originalFightNumber": 456,
	"originalFightDate": "2020-03-10",
	"flightDelayReason": "Weather",
	"flightInterruptionConsequence": "Cancellation",
	"newFightNumber": 789
}

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages