-
Notifications
You must be signed in to change notification settings - Fork 0
/
nasqueron-api-alkane.spec.yaml
112 lines (102 loc) · 2.99 KB
/
nasqueron-api-alkane.spec.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
openapi: '3.0.3'
info:
title: Nasqueron Alkane HTTP API
version: 0.1.0
description: |
Alkane is the Nasqueron PaaS to host static and PHP sites.
This API allows to check if a site is present on the PaaS,
or to trigger a new deployment, initializing or updating an existing site.
Some useful links:
- [Operations grimoire :: Alkane](https://agora.nasqueron.org/Operations_grimoire/Alkane)
- [DevCentral :: Alkane](https://devcentral.nasqueron.org/tag/alkane/)
license:
name: BSD-2-Clause
url: https://devcentral.nasqueron.org/source/alkane/browse/main/LICENSE
servers:
- url: http://172.27.27.10:10206
defaultContentType: application/json
tags:
- name: monitoring
description: Useful to monitor the application
- name: alkane
description: Access to Alkane features
paths:
/status:
get:
tags:
- monitoring
summary: Health status
description: Determine if the API is alive
operationId: status
responses:
'200':
description: Successful operation
/init/{siteName}:
post:
tags:
- alkane
summary: Initialize a new site on Alkane
description: Notify Alkane to run the build script "init"
operationId: init
parameters:
- name: siteName
in: path
description: The name of the site to deploy, generally its fully qualified domain name (FQDN). For example, "sub.domain.tld".
required: true
schema:
type: string
requestBody:
required: false
content:
"*/*":
schema:
type: string
responses:
'200':
description: Successful operation
/update/{siteName}:
post:
tags:
- alkane
summary: Update an existing site on Alkane
description: Notify Alkane to run the build script "update"
operationId: update
parameters:
- name: siteName
in: path
description: The name of the site to deploy, generally its fully qualified domain name (FQDN). For example, "sub.domain.tld".
required: true
schema:
type: string
requestBody:
required: false
content:
"*/*":
schema:
type: string
responses:
'200':
description: Successful operation
/deploy/{siteName}:
post:
tags:
- alkane
summary: Deploy a site on Alkane
description: Initialize a site if does not exist; otherwise, update it
operationId: deploy
parameters:
- name: siteName
in: path
description: The name of the site to deploy, generally its fully qualified domain name (FQDN). For example, "sub.domain.tld".
required: true
schema:
type: string
requestBody:
required: false
content:
"*/*":
schema:
type: string
responses:
'200':
description: Successful operation