-
Notifications
You must be signed in to change notification settings - Fork 1
/
yaml- defn.yml
126 lines (126 loc) · 2.72 KB
/
yaml- defn.yml
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
swagger: '2.0'
info:
title: projexpservice.azurewebsites.net
version: 1.0.0
host: projexpservice.azurewebsites.net
basePath: /
schemes:
- https
- http
paths:
/api/CreateExpense:
post:
operationId: /api/CreateExpense
produces:
- application/json
consumes:
- application/json
parameters:
- in: body
name: body
description: Inserts an expense item
required: true
schema:
$ref: '#/definitions/Expenses'
description: >-
Replace with Operation Object
#http:https://swagger.io/specification/#operationObject
responses:
'200':
description: Success operation
'405':
description: Invalid input
security:
- apikeyQuery: []
/api/GetAllExpenses:
get:
operationId: /api/GetAllExpenses
produces:
- application/json
consumes: []
parameters: []
description: >-
Replace with Operation Object
#http:https://swagger.io/specification/#operationObject
responses:
'200':
description: Success operation
schema:
$ref: '#/definitions/GetAllExpensesResponse'
security:
- apikeyQuery: []
/api/countries:
get:
operationId: /api/countries
produces:
- application/json
consumes: []
parameters: []
description: >-
Replace with Operation Object
#http:https://swagger.io/specification/#operationObject
responses:
'200':
description: Success operation
schema:
$ref: '#/definitions/GetAllCountriesResponse'
security:
- apikeyQuery: []
definitions:
GetAllCountriesResponse:
type: array
items:
$ref: '#/definitions/Countries'
GetAllExpensesResponse:
type: array
items:
$ref: '#/definitions/Expenses'
Countries:
type: object
properties:
name:
type: string
Expenses:
type: object
properties:
id:
type: string
empid:
type: string
description:
type: string
expensedate:
type: string
amount:
type: number
currency:
type: string
item:
type: string
country:
type: string
email:
type: string
required:
- id
- empid
- expensedate
- amount
- currency
- item
- country
- email
example:
id: f3198d5e-341d-4267-bf63-bb3ef692b70d
empid: emp001
expensedate: 12/12/2017
amount: 123.45
currency: inr
item: cabhire
country: india
email: [email protected]
securityDefinitions:
apikeyQuery:
type: apiKey
name: code
in: query