Created
July 13, 2017 05:02
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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