Skip to content

Instantly share code, notes, and snippets.

@thisislawatts
Last active November 19, 2017 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thisislawatts/111218a00150d53b893e0a721a795dce to your computer and use it in GitHub Desktop.
Save thisislawatts/111218a00150d53b893e0a721a795dce to your computer and use it in GitHub Desktop.
Vertoe FYA integration
swagger: '2.0'
info:
description: >-
This is a sample of how Vertoe could integrate with FYA. Using the Swagger
spec, find out more at [http://swagger.io](http://swagger.io) or on
[irc.freenode.net, #swagger](http://swagger.io/irc/)
version: 1.0.0
title: FYA with Vertoe
contact:
email: luke@thisis.la
host: api.fya.nyc
basePath: /
schemes:
- https
paths:
/availability:
post:
summary: Check availability of FYA service
consumes:
- application/json
parameters:
- in: body
name: body
description: Date and time we're looking to check capacity
required: true
schema:
$ref: '#/definitions/DateTime'
responses:
'200':
description: Successful response
'400':
description: Invalid datetime supplied
/vertoe:
post:
summary: Transfer customer to FYA for payment & order confirmation
consumes:
- application/json
parameters:
- in: body
name: body
description: Customer order we will be processing
required: true
schema:
$ref: '#/definitions/Journey'
responses:
'200':
description: Successful request
'400':
description: Invalid request
'405':
description: Validation exception
definitions:
DateTime:
type: object
properties:
datetime:
type: string
format: date-time
xml:
name: datetime
Journey:
type: object
properties:
pickup_datetime:
type: string
format: date-time
pickup_location:
type: string
dropoff_datetime:
type: string
format: date-time
dropoff_location:
type: string
dropoff_flight_details:
type: string
number_of_bags:
type: integer
callback_url:
type: string
xml:
name: journey
ApiResponse:
type: object
properties:
status:
type: string
message:
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment