-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.yaml
84 lines (78 loc) · 1.93 KB
/
api.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"
info:
title: License generator
description: >
redborder license generator API.
The API can be used to request demo licenses valid for 30 days for a
cluster. **Only one license per cluster is allowed**.
version: 0.4.0
contact:
name: redborder
url: https://redborder.com
email: info@redborder.com
license:
name: GNU Affero General Public License
url: https://www.gnu.org/licenses/agpl-3.0.txt
host: licenses.redborder.com
basePath: /api/v1
schemes:
- http
consumes:
- application/json
produces:
- application/json
tags:
- name: License
description: Manage licenses
paths:
/licenses:
x-swagger-router-controller: licenses
post:
tags: [License]
summary: Request demo license
operationId: request
parameters:
- name: cluster_info
in: body
description: Request a demo license valid for 30 days for a cluster.
required: true
schema:
$ref: "#/definitions/LicenseRequest"
responses:
"200":
description: Success
schema:
$ref: "#/definitions/LicenseResponse"
default:
description: Error
schema:
$ref: "#/definitions/ErrorResponse"
definitions:
LicenseRequest:
type: object
required:
- cluster_uuid
properties:
cluster_uuid:
type: string
description: >
UUID of the cluster where the license is allowed. One demo license
per cluster is allwed.
organization_uuid:
type: string
description: >
UUID of the organization where the license is allowed.
LicenseResponse:
type: object
properties:
license:
type: string
description: Base64 encoded license.
ErrorResponse:
type: object
required:
- message
properties:
message:
type: string
description: Information about the error.