forked from openapiby/nbrb.openapi.by
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
74 lines (74 loc) · 1.73 KB
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
swagger: '2.0'
info:
description: >-
This is a sample server Bank server. You can find out more about
Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net,
#swagger](http://swagger.io/irc/). For this sample, you can use the api
key `special-key` to test the authorization filters.
version: 1.0.0
title: Swagger
termsOfService: 'http://swagger.io/terms/'
contact:
email: [email protected]
license:
name: Apache 2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
host: petstore.swagger.io
basePath: /v2
tags:
- name: bank
description: Everything about your Banks
schemes:
- http
paths:
'/bank/{bic}':
get:
tags:
- bank
summary: Get bank by BIC
description: ''
operationId: getBankByBic
produces:
- application/xml
- application/json
parameters:
- name: bic
in: path
description: 'The bic that needs to be fetched. Use bic1 for testing. '
required: true
type: string
responses:
'200':
description: successful operation
schema:
$ref: '#/definitions/Bank'
'400':
description: Invalid bic supplied
'404':
description: Bank not found
definitions:
Bank:
type: object
properties:
id:
type: integer
format: int64
bic:
type: string
address:
type: string
xml:
name: Bank
ApiResponse:
type: object
properties:
code:
type: integer
format: int32
type:
type: string
message:
type: string
externalDocs:
description: Find out more about Swagger
url: 'http://swagger.io'