Newer
Older
swagger: "2.0"
info:
title: Cache Service
description: The cache service exposes interface for working with Redis.
version: ""
consumes:
- application/json
- application/xml
- application/gob
produces:
- application/json
- application/xml
- application/gob
paths:
/liveness:
get:
tags:
- health
summary: Liveness health
operationId: health#Liveness
responses:
"200":
description: OK response.
schemes:
- http
/readiness:
get:
tags:
- health
summary: Readiness health
operationId: health#Readiness
responses:
"200":
description: OK response.
schemes:
- http
/v1/cache:
get:
tags:
- cache
summary: Get cache
parameters:
- name: x-cache-key
in: header
description: Cache entry key
required: true
type: string
- name: x-cache-namespace
in: header
description: Cache entry namespace
required: true
type: string
- name: x-cache-scope
in: header
description: Cache entry scope
required: true
type: string
responses:
"200":
description: OK response.
schema:
type: string
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
format: binary
schemes:
- http
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
required: true
type: string
- name: x-cache-namespace
in: header
description: Cache entry namespace
required: true
type: string
- name: x-cache-scope
in: header
description: Cache entry scope
required: true
type: string
- name: any
in: body
required: true
schema:
type: string
format: binary
responses:
"201":
description: Created response.