Skip to content

Commit 0f14e2b

Browse files
committed
f
1 parent e4edecc commit 0f14e2b

File tree

5 files changed

+30
-2
lines changed

5 files changed

+30
-2
lines changed

api/docs/docs.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/docs/swagger.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

api/docs/swagger.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,12 @@ paths:
431431
schema:
432432
$ref: '#/components/schemas/types.AppConfig'
433433
description: OK
434+
"400":
435+
content:
436+
application/json:
437+
schema:
438+
$ref: '#/components/schemas/types.APIError'
439+
description: Bad Request
434440
security:
435441
- bearerauth: []
436442
summary: Set the app config values
@@ -507,6 +513,12 @@ paths:
507513
schema:
508514
$ref: '#/components/schemas/types.Status'
509515
description: OK
516+
"400":
517+
content:
518+
application/json:
519+
schema:
520+
$ref: '#/components/schemas/types.APIError'
521+
description: Bad Request
510522
security:
511523
- bearerauth: []
512524
summary: Configure the Kubernetes installation for install
@@ -577,6 +589,12 @@ paths:
577589
schema:
578590
$ref: '#/components/schemas/types.AppConfig'
579591
description: OK
592+
"400":
593+
content:
594+
application/json:
595+
schema:
596+
$ref: '#/components/schemas/types.APIError'
597+
description: Bad Request
580598
security:
581599
- bearerauth: []
582600
summary: Set the app config values
@@ -696,6 +714,12 @@ paths:
696714
schema:
697715
$ref: '#/components/schemas/types.Status'
698716
description: OK
717+
"400":
718+
content:
719+
application/json:
720+
schema:
721+
$ref: '#/components/schemas/types.APIError'
722+
description: Bad Request
699723
security:
700724
- bearerauth: []
701725
summary: Configure the installation for install

api/internal/handlers/kubernetes/install.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ func (h *Handler) GetInstallationConfig(w http.ResponseWriter, r *http.Request)
3939
// @Produce json
4040
// @Param installationConfig body types.KubernetesInstallationConfig true "Installation config"
4141
// @Success 200 {object} types.Status
42+
// @Failure 400 {object} types.APIError
4243
// @Router /kubernetes/install/installation/configure [post]
4344
func (h *Handler) PostConfigureInstallation(w http.ResponseWriter, r *http.Request) {
4445
var config types.KubernetesInstallationConfig
@@ -151,6 +152,7 @@ func (h *Handler) GetAppConfig(w http.ResponseWriter, r *http.Request) {
151152
// @Produce json
152153
// @Param request body types.SetAppConfigValuesRequest true "Set App Config Values Request"
153154
// @Success 200 {object} types.AppConfig
155+
// @Failure 400 {object} types.APIError
154156
// @Router /kubernetes/install/app/config/values [post]
155157
func (h *Handler) PostSetAppConfigValues(w http.ResponseWriter, r *http.Request) {
156158
var req types.SetAppConfigValuesRequest

api/internal/handlers/linux/install.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ func (h *Handler) GetInstallationConfig(w http.ResponseWriter, r *http.Request)
4040
// @Produce json
4141
// @Param installationConfig body types.LinuxInstallationConfig true "Installation config"
4242
// @Success 200 {object} types.Status
43+
// @Failure 400 {object} types.APIError
4344
// @Router /linux/install/installation/configure [post]
4445
func (h *Handler) PostConfigureInstallation(w http.ResponseWriter, r *http.Request) {
4546
var config types.LinuxInstallationConfig
@@ -230,6 +231,7 @@ func (h *Handler) GetAppConfig(w http.ResponseWriter, r *http.Request) {
230231
// @Produce json
231232
// @Param request body types.SetAppConfigValuesRequest true "Set App Config Values Request"
232233
// @Success 200 {object} types.AppConfig
234+
// @Failure 400 {object} types.APIError
233235
// @Router /linux/install/app/config/values [post]
234236
func (h *Handler) PostSetAppConfigValues(w http.ResponseWriter, r *http.Request) {
235237
var req types.SetAppConfigValuesRequest

0 commit comments

Comments
 (0)