-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopenapi.yaml
133 lines (128 loc) · 3.01 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
openapi: 3.0.3
info:
title: go-ifsc
version: 0.4.2
description: API documentation for go-ifsc. A CLI / REST API server for searching details about Indian banks
license:
name: AGPLv3
url: https://www.gnu.org/licenses/agpl-3.0.en.html
externalDocs:
description: Find out more about go-ifsc
url: https://gitlab.com/kskarthik/go-ifsc
servers:
- url: https://ifsc.kskarthik.insomnia247.nl
components:
schemas:
ifsc-object:
type: object
properties:
BANK:
type: string
IFSC:
type: string
BRANCH:
type: string
CENTER:
type: string
DISTRICT:
type: string
STATE:
type: string
ADDRESS:
type: string
CONTACT:
type: string
IMPS:
type: boolean
RTGS:
type: boolean
CITY:
type: string
ISO3166:
type: string
NEFT:
type: boolean
MICR:
type: string
UPI:
type: boolean
SWIFT:
type: string
nullable: true
paths:
/:
get:
summary: Application Status
responses:
"200":
description: Successful operation
content:
application/json:
schema:
type: object
properties:
version:
type: string
/{ifsc}:
get:
summary: validate an IFSC code
parameters:
- name: ifsc
in: path
required: true
schema:
type: string
responses:
"200":
description: Successful operation
content:
application/json:
schema:
$ref: "#/components/schemas/ifsc-object"
"404":
description: IFSC Code not found
/search:
get:
summary: Search for banks
description: the search query can be name, branch, address etc...
parameters:
- name: q
in: query
required: true
schema:
type: string
- name: match
in: query
description: text matching pattern
schema:
enum: ["all", "any", "fuzzy", "adv"]
default: any
- name: limit
description: search results limit
in: query
schema:
type: integer
default: 20
responses:
"200":
description: Successful operation
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/ifsc-object"
"400":
description: Incorrect query parameters
/fields:
get:
summary: Returns fields of a bank
responses:
"200":
description: Successful operation
content:
application/json:
schema:
type: array
items:
type: string