Skip to content

Instantly share code, notes, and snippets.

@handakumbura
Created July 13, 2017 05:02
Show Gist options
  • Save handakumbura/7c5f31acc5e9416c218a419c7d25cbc9 to your computer and use it in GitHub Desktop.
Save handakumbura/7c5f31acc5e9416c218a419c7d25cbc9 to your computer and use it in GitHub Desktop.
ABC Bank API swagger definition, created for the article "Design-First with Ballerina". http://ballerinagist.blogspot.com
swagger: '2.0'
basePath: /ABCBank
info:
version: 1.0.0
title: Sample Service
paths:
/locator:
post:
operationId: locator
responses:
default:
description: Default Response
405:
description: "Invalid input"
summary: >-
This resource initiates the orchestration processes between the backend
services and returns the bank information requested by the consumer.
consumes:
- application/json
produces:
- application/json
parameters:
- in: "body"
name: "body"
description: "The locator payload containing the zip code of the consumer."
required: true
schema:
$ref: "#/definitions/RequestPayload"
definitions:
RequestPayload:
type: "object"
properties:
ATMLocator:
$ref: "#/definitions/ZipCode"
ZipCode:
type: "object"
properties:
ZipCode:
type: "string"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment