Skip to content

This repo contains technical assets of devjam and other API implementations around the use cases relevant to the movie

Notifications You must be signed in to change notification settings

vinit4u16/adaptordie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

adaptordie

This repo contains technical assets of devjam and other API implementations around the use cases relevant to the movie

Steps

*** Create new API proxy using the below Open API spec: ***

POSTMAN link to import the collection - https://www.getpostman.com/collections/40b87157f7b653febeb8

1) Make Reservation

URL: http://{org}-{env}.apigee.net/adventures/reservations

Method: POST

Header: Content-Type: application/json

Request:

    {
     "memberId": "your_memberId", //Provide your member ID as per your registration
     "preferences": [
       {
         "roomType": "seaView", //seaView, mountainView, cityView
         "cuisine": "indian", //indian, mexican, italian, chinese
         "outdoors": "snorkelling", //snorkelling, scuba
         "leisure": "spa" //spa, yoga
       }
     ]
    }

Copy the response and paste it in a text editor, for example

Response:

{
  "reservationId": "****",
  "passCode": "*****",
  "status": "confirmed"
}

2) Get Reservation

URL: http://{org}-{env}.apigee.net/adventures/reservations/{reservationId}

Method: GET

Header: Content-Type: application/json

Response:

{
 "memberId": "your_memberId",
 "status": "confirmed",
 "preferences": [
   {
     "roomType": "seaView",
     "cuisine": "indian",
     "outdoors": "snorkelling",
     "leisure": "spa"
   }
 ]
}

3) Check-In

URL: http://{org}-{env}.apigee.net/adventures/reservations/{reservationId}/checkin

Method: POST

Header: Content-Type: application/json

Request:

{
	"memberId":"your_memberId",
	"passCode":"****"
}

To access Adapt or Die developer portal - click http://dev-adaptordie.devportal.apigee.com/

About

This repo contains technical assets of devjam and other API implementations around the use cases relevant to the movie

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published