-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathhotelreview.yaml
154 lines (154 loc) · 3.32 KB
/
hotelreview.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
swagger: '2.0'
info:
title: hotelreview
version: 1.0.0
description: hotelreview
x-ibm-name: hotelreview
paths:
/createReview:
post:
operationId: postCreateReview
responses:
'200':
description: The operation was successful.
schema:
$ref: '#/definitions/reviewResp'
consumes:
- application/json
produces:
- application/json
description: Insert a createReview
parameters:
- name: body
in: body
schema:
$ref: '#/definitions/review'
description: The request body for the operation
required: true
/reviews:
get:
operationId: getReviews
responses:
'200':
description: The operation was successful.
schema:
$ref: '#/definitions/getReviewResp'
produces:
- application/json
description: Retrieve reviews
parameters:
- name: page
in: query
type: integer
required: true
- name: size
in: query
type: integer
required: true
basePath: /hotelreview/v1
definitions:
review:
type: object
properties:
name:
type: string
description:
type: string
city:
type: string
rating:
type: integer
reviewResp:
type: object
properties:
id:
type: integer
name:
type: string
description:
type: string
city:
type: string
rating:
type: integer
getReviewResp:
type: object
properties:
content:
type: array
items:
$ref: '#/definitions/review'
last:
type: boolean
totalElements:
type: integer
totalPages:
type: integer
numberOfElements:
type: integer
first:
type: boolean
size:
type: integer
number:
type: integer
sort:
type:
- string
- 'null'
schemes:
- https
x-ibm-configuration:
type: rest
phase: realized
enforced: true
testable: true
gateway: datapower-api-gateway
cors:
enabled: true
assembly:
execute:
- invoke:
title: invoke
version: 2.0.0
verb: keep
target-url: $(target-url)$(request.path)$(request.search)
follow-redirects: false
timeout: 60
parameter-control:
type: allowlist
values: []
header-control:
type: blocklist
values: []
inject-proxy-headers: true
persistent-connection: true
finally: []
properties:
target-url:
value: >-
http://hotelreview-http-ace.apps.ocp-060001q8qm-ada2.cloud.techzone.ibm.com
description: The URL of the target service
encoded: false
activity-log:
enabled: true
success-content: activity
error-content: payload
catalogs:
Sandbox:
properties:
target-url: >-
http://hotelreview-http-ace.apps.ocp-060001q8qm-ada2.cloud.techzone.ibm.com
securityDefinitions:
client-id:
type: apiKey
name: X-IBM-Client-Id
in: header
x-key-type: client_id
client-secret:
type: apiKey
name: X-IBM-Client-Secret
x-key-type: client_secret
in: header
security:
- client-id: []