-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathswagger.yaml
84 lines (84 loc) · 1.9 KB
/
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
75
76
77
78
79
80
81
82
83
84
---
swagger: '2.0'
basePath: "/"
consumes:
- application/json
produces:
- application/json
schemes:
- http
- https
info:
description: An API for generating wordchains
title: WordChains
contact:
name: SuperOrbital
url: http://superorbital.io/
email: [email protected]
version: 1.0.0
definitions:
models.WordchainPrefs:
type: object
properties:
length:
description: The length of the words for each chain segment.
type: integer
divider:
description: The divider to use between each chain segment.
type: string
prepend:
description: A string to prepend the chain segment with.
type: string
postpend:
description: A string to postpend the chain segment with.
type: string
seed:
description: A string to use as a seed for deterministic results.
type: string
type:
description: An array of word types to return in the chain.
type: array
items:
type: string
error:
type: object
required:
- message
properties:
code:
type: integer
format: int64
message:
type: string
paths:
"/v1/random":
post:
description: Generate a wordchain
consumes:
- application/json
produces:
- application/json
tags:
- wordchain
summary: Get a wordchain
operationId: get-random
parameters:
- description: Wordchain Parameters
name: body
in: body
required: false
schema:
$ref: "#/definitions/models.WordchainPrefs"
responses:
'200':
description: OK
schema:
type: string
'400':
description: Bad Request
schema:
type: string
default:
description: generic error response
schema:
$ref: "#/definitions/error"