-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseppen-swagger.yaml
74 lines (74 loc) · 1.66 KB
/
seppen-swagger.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
swagger: "2.0"
info:
description: "Simple distributed in-memory key-value store"
version: "1.0.0"
title: "Seppen"
host: "localhost:21285"
basePath: "/"
schemes:
- "http"
paths:
/:
get:
summary: "Returns list of the keys"
produces:
- "application/octet-stream"
responses:
200:
description: "ok"
schema:
type: "string"
format: "binary"
/{key}:
parameters:
- name: "key"
in: "path"
description: "key of the stored record"
required: true
type: "string"
get:
summary: "Return value for a given key"
parameters:
- in: "header"
name: "If-None-Match"
required: false
type: "string"
produces:
- "application/octet-stream"
responses:
200:
description: "ok"
schema:
type: "string"
format: "binary"
304:
description: "not modified"
404:
description: "not found"
put:
summary: "Store given payload under a given key"
parameters:
- in: "body"
name: "value"
required: true
schema:
type: "string"
format: "binary"
produces:
- "application/octet-stream"
responses:
201:
description: "created"
409:
description: "conflict"
500:
description: "internal server error"
delete:
summary: "Delete record for a given key"
produces:
- "application/octet-stream"
responses:
204:
description: "no content"
500:
description: "internal server error"