Newer
Older
openapi: 3.0.3
info:
title: Cache Service
description: The cache service exposes interface for working with Redis.
version: "1.0"
- url: http://localhost:8083
description: Cache Server
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
/liveness:
get:
tags:
- health
summary: Liveness health
operationId: health#Liveness
responses:
"200":
description: OK response.
/readiness:
get:
tags:
- health
summary: Readiness health
operationId: health#Readiness
responses:
"200":
description: OK response.
/v1/cache:
get:
tags:
- cache
summary: Get cache
description: Get JSON value from the cache.
operationId: cache#Get
parameters:
- name: x-cache-key
in: header
description: Cache entry key
allowEmptyValue: true
required: true
schema:
type: string
description: Cache entry key
example: did:web:example.com
example: did:web:example.com
- name: x-cache-namespace
in: header
description: Cache entry namespace
allowEmptyValue: true
schema:
type: string
description: Cache entry namespace
example: Login
example: Login
- name: x-cache-scope
in: header
description: Cache entry scope
allowEmptyValue: true
schema:
type: string
description: Cache entry scope
example: administration
example: administration
responses:
"200":
description: OK response.
content:
application/json:
schema:
type: string
example: Delectus quaerat molestiae placeat nemo.
format: binary
example: Quia dolores rem.
post:
tags:
- cache
summary: Set cache
description: Set a JSON value in the cache.
operationId: cache#Set
parameters:
- name: x-cache-key
in: header
description: Cache entry key
allowEmptyValue: true
required: true
schema:
type: string
description: Cache entry key
example: did:web:example.com
example: did:web:example.com
- name: x-cache-namespace
in: header
description: Cache entry namespace
allowEmptyValue: true
schema:
type: string
description: Cache entry namespace
example: Login
example: Login
- name: x-cache-scope
in: header
description: Cache entry scope
allowEmptyValue: true
schema:
type: string
description: Cache entry scope
example: administration
example: administration
- name: x-cache-ttl
in: header
description: Cache entry TTL in seconds
allowEmptyValue: true
schema:
type: integer
description: Cache entry TTL in seconds
example: 60
format: int64
example: 60
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
155
156
157
158
159
160
161
162
163
164
165
166
requestBody:
required: true
content:
application/json:
schema:
type: string
example: Quis rerum velit sunt rerum dignissimos at.
format: binary
example: Est illum.
responses:
"201":
description: Created response.
/v1/external/cache:
post:
tags:
- cache
summary: SetExternal cache
description: Set an external JSON value in the cache and provide an event for the input.
operationId: cache#SetExternal
parameters:
- name: x-cache-key
in: header
description: Cache entry key
allowEmptyValue: true
required: true
schema:
type: string
description: Cache entry key
example: did:web:example.com
example: did:web:example.com
- name: x-cache-namespace
in: header
description: Cache entry namespace
allowEmptyValue: true
schema:
type: string
description: Cache entry namespace
example: Login
example: Login
- name: x-cache-scope
in: header
description: Cache entry scope
allowEmptyValue: true
schema:
type: string
description: Cache entry scope
example: administration
example: administration
- name: x-cache-ttl
in: header
description: Cache entry TTL in seconds
allowEmptyValue: true
schema:
type: integer
description: Cache entry TTL in seconds
example: 60
format: int64
example: 60
requestBody:
required: true
content:
application/json:
schema:
type: string
example: Molestiae minima.
format: binary
example: Repellendus quo.
responses:
"200":
description: OK response.
components: {}
tags:
- name: health
description: Health service provides health check endpoints.
- name: cache
description: Cache service allows storing and retrieving data from distributed cache.