From 9e124081a041dab294fca0bcae30e11b547b71d8 Mon Sep 17 00:00:00 2001 From: broadbot Date: Thu, 12 Oct 2023 20:56:59 +0000 Subject: [PATCH] [sherlock-build] generated from 79e6c41adb7ea61a2055664f1481c3a4eb06ac24 --- .../app_versions/app_versions_client.go | 2 +- .../post_api_app_versions_v3_responses.go | 14 +- .../chart_versions/chart_versions_client.go | 2 +- .../post_api_chart_versions_v3_responses.go | 14 +- sherlock-typescript-client/README.md | 4 +- sherlock-typescript-client/package-lock.json | 4 +- sherlock-typescript-client/package.json | 2 +- .../src/apis/AppVersionsApi.ts | 2 +- .../src/apis/ChartVersionsApi.ts | 2 +- sherlock/docs/docs.go | 152 +++++++++--------- sherlock/docs/swagger.json | 152 +++++++++--------- sherlock/docs/swagger.yaml | 118 +++++++------- 12 files changed, 229 insertions(+), 239 deletions(-) diff --git a/sherlock-go-client/client/app_versions/app_versions_client.go b/sherlock-go-client/client/app_versions/app_versions_client.go index 7b57f4277..4fdab4f19 100644 --- a/sherlock-go-client/client/app_versions/app_versions_client.go +++ b/sherlock-go-client/client/app_versions/app_versions_client.go @@ -431,7 +431,7 @@ func (a *Client) PostAPIAppVersionsV3(params *PostAPIAppVersionsV3Params, opts . op := &runtime.ClientOperation{ ID: "PostAPIAppVersionsV3", Method: "POST", - PathPattern: "/api/appVersions/v3", + PathPattern: "/api/app-versions/v3", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"https"}, diff --git a/sherlock-go-client/client/app_versions/post_api_app_versions_v3_responses.go b/sherlock-go-client/client/app_versions/post_api_app_versions_v3_responses.go index bd8a26984..06e2c042a 100644 --- a/sherlock-go-client/client/app_versions/post_api_app_versions_v3_responses.go +++ b/sherlock-go-client/client/app_versions/post_api_app_versions_v3_responses.go @@ -84,7 +84,7 @@ type PostAPIAppVersionsV3Created struct { } func (o *PostAPIAppVersionsV3Created) Error() string { - return fmt.Sprintf("[POST /api/appVersions/v3][%d] postApiAppVersionsV3Created %+v", 201, o.Payload) + return fmt.Sprintf("[POST /api/app-versions/v3][%d] postApiAppVersionsV3Created %+v", 201, o.Payload) } func (o *PostAPIAppVersionsV3Created) GetPayload() *models.SherlockAppVersionV3 { return o.Payload @@ -116,7 +116,7 @@ type PostAPIAppVersionsV3BadRequest struct { } func (o *PostAPIAppVersionsV3BadRequest) Error() string { - return fmt.Sprintf("[POST /api/appVersions/v3][%d] postApiAppVersionsV3BadRequest %+v", 400, o.Payload) + return fmt.Sprintf("[POST /api/app-versions/v3][%d] postApiAppVersionsV3BadRequest %+v", 400, o.Payload) } func (o *PostAPIAppVersionsV3BadRequest) GetPayload() *models.ErrorsErrorResponse { return o.Payload @@ -148,7 +148,7 @@ type PostAPIAppVersionsV3Forbidden struct { } func (o *PostAPIAppVersionsV3Forbidden) Error() string { - return fmt.Sprintf("[POST /api/appVersions/v3][%d] postApiAppVersionsV3Forbidden %+v", 403, o.Payload) + return fmt.Sprintf("[POST /api/app-versions/v3][%d] postApiAppVersionsV3Forbidden %+v", 403, o.Payload) } func (o *PostAPIAppVersionsV3Forbidden) GetPayload() *models.ErrorsErrorResponse { return o.Payload @@ -180,7 +180,7 @@ type PostAPIAppVersionsV3NotFound struct { } func (o *PostAPIAppVersionsV3NotFound) Error() string { - return fmt.Sprintf("[POST /api/appVersions/v3][%d] postApiAppVersionsV3NotFound %+v", 404, o.Payload) + return fmt.Sprintf("[POST /api/app-versions/v3][%d] postApiAppVersionsV3NotFound %+v", 404, o.Payload) } func (o *PostAPIAppVersionsV3NotFound) GetPayload() *models.ErrorsErrorResponse { return o.Payload @@ -212,7 +212,7 @@ type PostAPIAppVersionsV3ProxyAuthenticationRequired struct { } func (o *PostAPIAppVersionsV3ProxyAuthenticationRequired) Error() string { - return fmt.Sprintf("[POST /api/appVersions/v3][%d] postApiAppVersionsV3ProxyAuthenticationRequired %+v", 407, o.Payload) + return fmt.Sprintf("[POST /api/app-versions/v3][%d] postApiAppVersionsV3ProxyAuthenticationRequired %+v", 407, o.Payload) } func (o *PostAPIAppVersionsV3ProxyAuthenticationRequired) GetPayload() *models.ErrorsErrorResponse { return o.Payload @@ -244,7 +244,7 @@ type PostAPIAppVersionsV3Conflict struct { } func (o *PostAPIAppVersionsV3Conflict) Error() string { - return fmt.Sprintf("[POST /api/appVersions/v3][%d] postApiAppVersionsV3Conflict %+v", 409, o.Payload) + return fmt.Sprintf("[POST /api/app-versions/v3][%d] postApiAppVersionsV3Conflict %+v", 409, o.Payload) } func (o *PostAPIAppVersionsV3Conflict) GetPayload() *models.ErrorsErrorResponse { return o.Payload @@ -276,7 +276,7 @@ type PostAPIAppVersionsV3InternalServerError struct { } func (o *PostAPIAppVersionsV3InternalServerError) Error() string { - return fmt.Sprintf("[POST /api/appVersions/v3][%d] postApiAppVersionsV3InternalServerError %+v", 500, o.Payload) + return fmt.Sprintf("[POST /api/app-versions/v3][%d] postApiAppVersionsV3InternalServerError %+v", 500, o.Payload) } func (o *PostAPIAppVersionsV3InternalServerError) GetPayload() *models.ErrorsErrorResponse { return o.Payload diff --git a/sherlock-go-client/client/chart_versions/chart_versions_client.go b/sherlock-go-client/client/chart_versions/chart_versions_client.go index f8c0b46b7..0414f8af6 100644 --- a/sherlock-go-client/client/chart_versions/chart_versions_client.go +++ b/sherlock-go-client/client/chart_versions/chart_versions_client.go @@ -431,7 +431,7 @@ func (a *Client) PostAPIChartVersionsV3(params *PostAPIChartVersionsV3Params, op op := &runtime.ClientOperation{ ID: "PostAPIChartVersionsV3", Method: "POST", - PathPattern: "/api/chartVersions/v3", + PathPattern: "/api/chart-versions/v3", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"https"}, diff --git a/sherlock-go-client/client/chart_versions/post_api_chart_versions_v3_responses.go b/sherlock-go-client/client/chart_versions/post_api_chart_versions_v3_responses.go index c7cb5dc07..462ebfd40 100644 --- a/sherlock-go-client/client/chart_versions/post_api_chart_versions_v3_responses.go +++ b/sherlock-go-client/client/chart_versions/post_api_chart_versions_v3_responses.go @@ -84,7 +84,7 @@ type PostAPIChartVersionsV3Created struct { } func (o *PostAPIChartVersionsV3Created) Error() string { - return fmt.Sprintf("[POST /api/chartVersions/v3][%d] postApiChartVersionsV3Created %+v", 201, o.Payload) + return fmt.Sprintf("[POST /api/chart-versions/v3][%d] postApiChartVersionsV3Created %+v", 201, o.Payload) } func (o *PostAPIChartVersionsV3Created) GetPayload() *models.SherlockChartVersionV3 { return o.Payload @@ -116,7 +116,7 @@ type PostAPIChartVersionsV3BadRequest struct { } func (o *PostAPIChartVersionsV3BadRequest) Error() string { - return fmt.Sprintf("[POST /api/chartVersions/v3][%d] postApiChartVersionsV3BadRequest %+v", 400, o.Payload) + return fmt.Sprintf("[POST /api/chart-versions/v3][%d] postApiChartVersionsV3BadRequest %+v", 400, o.Payload) } func (o *PostAPIChartVersionsV3BadRequest) GetPayload() *models.ErrorsErrorResponse { return o.Payload @@ -148,7 +148,7 @@ type PostAPIChartVersionsV3Forbidden struct { } func (o *PostAPIChartVersionsV3Forbidden) Error() string { - return fmt.Sprintf("[POST /api/chartVersions/v3][%d] postApiChartVersionsV3Forbidden %+v", 403, o.Payload) + return fmt.Sprintf("[POST /api/chart-versions/v3][%d] postApiChartVersionsV3Forbidden %+v", 403, o.Payload) } func (o *PostAPIChartVersionsV3Forbidden) GetPayload() *models.ErrorsErrorResponse { return o.Payload @@ -180,7 +180,7 @@ type PostAPIChartVersionsV3NotFound struct { } func (o *PostAPIChartVersionsV3NotFound) Error() string { - return fmt.Sprintf("[POST /api/chartVersions/v3][%d] postApiChartVersionsV3NotFound %+v", 404, o.Payload) + return fmt.Sprintf("[POST /api/chart-versions/v3][%d] postApiChartVersionsV3NotFound %+v", 404, o.Payload) } func (o *PostAPIChartVersionsV3NotFound) GetPayload() *models.ErrorsErrorResponse { return o.Payload @@ -212,7 +212,7 @@ type PostAPIChartVersionsV3ProxyAuthenticationRequired struct { } func (o *PostAPIChartVersionsV3ProxyAuthenticationRequired) Error() string { - return fmt.Sprintf("[POST /api/chartVersions/v3][%d] postApiChartVersionsV3ProxyAuthenticationRequired %+v", 407, o.Payload) + return fmt.Sprintf("[POST /api/chart-versions/v3][%d] postApiChartVersionsV3ProxyAuthenticationRequired %+v", 407, o.Payload) } func (o *PostAPIChartVersionsV3ProxyAuthenticationRequired) GetPayload() *models.ErrorsErrorResponse { return o.Payload @@ -244,7 +244,7 @@ type PostAPIChartVersionsV3Conflict struct { } func (o *PostAPIChartVersionsV3Conflict) Error() string { - return fmt.Sprintf("[POST /api/chartVersions/v3][%d] postApiChartVersionsV3Conflict %+v", 409, o.Payload) + return fmt.Sprintf("[POST /api/chart-versions/v3][%d] postApiChartVersionsV3Conflict %+v", 409, o.Payload) } func (o *PostAPIChartVersionsV3Conflict) GetPayload() *models.ErrorsErrorResponse { return o.Payload @@ -276,7 +276,7 @@ type PostAPIChartVersionsV3InternalServerError struct { } func (o *PostAPIChartVersionsV3InternalServerError) Error() string { - return fmt.Sprintf("[POST /api/chartVersions/v3][%d] postApiChartVersionsV3InternalServerError %+v", 500, o.Payload) + return fmt.Sprintf("[POST /api/chart-versions/v3][%d] postApiChartVersionsV3InternalServerError %+v", 500, o.Payload) } func (o *PostAPIChartVersionsV3InternalServerError) GetPayload() *models.ErrorsErrorResponse { return o.Payload diff --git a/sherlock-typescript-client/README.md b/sherlock-typescript-client/README.md index ee58b41e5..29e2fbfb6 100644 --- a/sherlock-typescript-client/README.md +++ b/sherlock-typescript-client/README.md @@ -1,4 +1,4 @@ -## @sherlock-js-client/sherlock@v0.2.10 +## @sherlock-js-client/sherlock@v0.2.11 This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments: @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co _published:_ ``` -npm install @sherlock-js-client/sherlock@v0.2.10 --save +npm install @sherlock-js-client/sherlock@v0.2.11 --save ``` _unPublished (not recommended):_ diff --git a/sherlock-typescript-client/package-lock.json b/sherlock-typescript-client/package-lock.json index db2eeabe5..347ae796a 100644 --- a/sherlock-typescript-client/package-lock.json +++ b/sherlock-typescript-client/package-lock.json @@ -1,12 +1,12 @@ { "name": "@sherlock-js-client/sherlock", - "version": "v0.2.10", + "version": "v0.2.11", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@sherlock-js-client/sherlock", - "version": "v0.2.10", + "version": "v0.2.11", "devDependencies": { "typescript": "^4.0" } diff --git a/sherlock-typescript-client/package.json b/sherlock-typescript-client/package.json index 32a2ec34a..a89f8ae2d 100644 --- a/sherlock-typescript-client/package.json +++ b/sherlock-typescript-client/package.json @@ -1,6 +1,6 @@ { "name": "@sherlock-js-client/sherlock", - "version": "v0.2.10", + "version": "v0.2.11", "description": "OpenAPI client for @sherlock-js-client/sherlock", "author": "OpenAPI-Generator", "repository": { diff --git a/sherlock-typescript-client/src/apis/AppVersionsApi.ts b/sherlock-typescript-client/src/apis/AppVersionsApi.ts index 9d7c45eea..31e270fa0 100644 --- a/sherlock-typescript-client/src/apis/AppVersionsApi.ts +++ b/sherlock-typescript-client/src/apis/AppVersionsApi.ts @@ -257,7 +257,7 @@ export class AppVersionsApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/appVersions/v3`, + path: `/api/app-versions/v3`, method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/sherlock-typescript-client/src/apis/ChartVersionsApi.ts b/sherlock-typescript-client/src/apis/ChartVersionsApi.ts index e381bded7..71ce7b8bd 100644 --- a/sherlock-typescript-client/src/apis/ChartVersionsApi.ts +++ b/sherlock-typescript-client/src/apis/ChartVersionsApi.ts @@ -245,7 +245,7 @@ export class ChartVersionsApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; const response = await this.request({ - path: `/api/chartVersions/v3`, + path: `/api/chart-versions/v3`, method: 'POST', headers: headerParameters, query: queryParameters, diff --git a/sherlock/docs/docs.go b/sherlock/docs/docs.go index 8e90b92fd..4a2dbd1fe 100644 --- a/sherlock/docs/docs.go +++ b/sherlock/docs/docs.go @@ -226,30 +226,33 @@ const docTemplate = `{ } } } - } - }, - "/api/app-versions/v3/{selector}": { - "get": { - "description": "Get an individual AppVersion.", + }, + "post": { + "description": "Upsert a AppVersion.", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ "AppVersions" ], - "summary": "Get an individual AppVersion", + "summary": "Upsert a AppVersion", "parameters": [ { - "type": "string", - "description": "The selector of the AppVersion, which can be either a numeric ID or chart/version.", - "name": "selector", - "in": "path", - "required": true + "description": "The AppVersion to upsert", + "name": "appVersion", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/sherlock.AppVersionV3Create" + } } ], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "schema": { "$ref": "#/definitions/sherlock.AppVersionV3" } @@ -291,16 +294,18 @@ const docTemplate = `{ } } } - }, - "patch": { - "description": "Edit an individual AppVersion.", + } + }, + "/api/app-versions/v3/{selector}": { + "get": { + "description": "Get an individual AppVersion.", "produces": [ "application/json" ], "tags": [ "AppVersions" ], - "summary": "Edit an individual AppVersion", + "summary": "Get an individual AppVersion", "parameters": [ { "type": "string", @@ -308,15 +313,6 @@ const docTemplate = `{ "name": "selector", "in": "path", "required": true - }, - { - "description": "The edits to make to the AppVersion", - "name": "appVersion", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/sherlock.AppVersionV3Edit" - } } ], "responses": { @@ -363,35 +359,37 @@ const docTemplate = `{ } } } - } - }, - "/api/appVersions/v3": { - "post": { - "description": "Upsert a AppVersion.", - "consumes": [ - "application/json" - ], + }, + "patch": { + "description": "Edit an individual AppVersion.", "produces": [ "application/json" ], "tags": [ "AppVersions" ], - "summary": "Upsert a AppVersion", + "summary": "Edit an individual AppVersion", "parameters": [ { - "description": "The AppVersion to upsert", + "type": "string", + "description": "The selector of the AppVersion, which can be either a numeric ID or chart/version.", + "name": "selector", + "in": "path", + "required": true + }, + { + "description": "The edits to make to the AppVersion", "name": "appVersion", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/sherlock.AppVersionV3Create" + "$ref": "#/definitions/sherlock.AppVersionV3Edit" } } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "schema": { "$ref": "#/definitions/sherlock.AppVersionV3" } @@ -623,30 +621,33 @@ const docTemplate = `{ } } } - } - }, - "/api/chart-versions/v3/{selector}": { - "get": { - "description": "Get an individual ChartVersion.", + }, + "post": { + "description": "Upsert a ChartVersion.", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ "ChartVersions" ], - "summary": "Get an individual ChartVersion", + "summary": "Upsert a ChartVersion", "parameters": [ { - "type": "string", - "description": "The selector of the ChartVersion, which can be either a numeric ID or chart/version.", - "name": "selector", - "in": "path", - "required": true + "description": "The ChartVersion to upsert", + "name": "chartVersion", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/sherlock.ChartVersionV3Create" + } } ], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "schema": { "$ref": "#/definitions/sherlock.ChartVersionV3" } @@ -688,16 +689,18 @@ const docTemplate = `{ } } } - }, - "patch": { - "description": "Edit an individual ChartVersion.", + } + }, + "/api/chart-versions/v3/{selector}": { + "get": { + "description": "Get an individual ChartVersion.", "produces": [ "application/json" ], "tags": [ "ChartVersions" ], - "summary": "Edit an individual ChartVersion", + "summary": "Get an individual ChartVersion", "parameters": [ { "type": "string", @@ -705,15 +708,6 @@ const docTemplate = `{ "name": "selector", "in": "path", "required": true - }, - { - "description": "The edits to make to the ChartVersion", - "name": "chartVersion", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/sherlock.ChartVersionV3Edit" - } } ], "responses": { @@ -760,35 +754,37 @@ const docTemplate = `{ } } } - } - }, - "/api/chartVersions/v3": { - "post": { - "description": "Upsert a ChartVersion.", - "consumes": [ - "application/json" - ], + }, + "patch": { + "description": "Edit an individual ChartVersion.", "produces": [ "application/json" ], "tags": [ "ChartVersions" ], - "summary": "Upsert a ChartVersion", + "summary": "Edit an individual ChartVersion", "parameters": [ { - "description": "The ChartVersion to upsert", + "type": "string", + "description": "The selector of the ChartVersion, which can be either a numeric ID or chart/version.", + "name": "selector", + "in": "path", + "required": true + }, + { + "description": "The edits to make to the ChartVersion", "name": "chartVersion", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/sherlock.ChartVersionV3Create" + "$ref": "#/definitions/sherlock.ChartVersionV3Edit" } } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "schema": { "$ref": "#/definitions/sherlock.ChartVersionV3" } diff --git a/sherlock/docs/swagger.json b/sherlock/docs/swagger.json index 44d90b49b..334a992d6 100644 --- a/sherlock/docs/swagger.json +++ b/sherlock/docs/swagger.json @@ -222,30 +222,33 @@ } } } - } - }, - "/api/app-versions/v3/{selector}": { - "get": { - "description": "Get an individual AppVersion.", + }, + "post": { + "description": "Upsert a AppVersion.", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ "AppVersions" ], - "summary": "Get an individual AppVersion", + "summary": "Upsert a AppVersion", "parameters": [ { - "type": "string", - "description": "The selector of the AppVersion, which can be either a numeric ID or chart/version.", - "name": "selector", - "in": "path", - "required": true + "description": "The AppVersion to upsert", + "name": "appVersion", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/sherlock.AppVersionV3Create" + } } ], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "schema": { "$ref": "#/definitions/sherlock.AppVersionV3" } @@ -287,16 +290,18 @@ } } } - }, - "patch": { - "description": "Edit an individual AppVersion.", + } + }, + "/api/app-versions/v3/{selector}": { + "get": { + "description": "Get an individual AppVersion.", "produces": [ "application/json" ], "tags": [ "AppVersions" ], - "summary": "Edit an individual AppVersion", + "summary": "Get an individual AppVersion", "parameters": [ { "type": "string", @@ -304,15 +309,6 @@ "name": "selector", "in": "path", "required": true - }, - { - "description": "The edits to make to the AppVersion", - "name": "appVersion", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/sherlock.AppVersionV3Edit" - } } ], "responses": { @@ -359,35 +355,37 @@ } } } - } - }, - "/api/appVersions/v3": { - "post": { - "description": "Upsert a AppVersion.", - "consumes": [ - "application/json" - ], + }, + "patch": { + "description": "Edit an individual AppVersion.", "produces": [ "application/json" ], "tags": [ "AppVersions" ], - "summary": "Upsert a AppVersion", + "summary": "Edit an individual AppVersion", "parameters": [ { - "description": "The AppVersion to upsert", + "type": "string", + "description": "The selector of the AppVersion, which can be either a numeric ID or chart/version.", + "name": "selector", + "in": "path", + "required": true + }, + { + "description": "The edits to make to the AppVersion", "name": "appVersion", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/sherlock.AppVersionV3Create" + "$ref": "#/definitions/sherlock.AppVersionV3Edit" } } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "schema": { "$ref": "#/definitions/sherlock.AppVersionV3" } @@ -619,30 +617,33 @@ } } } - } - }, - "/api/chart-versions/v3/{selector}": { - "get": { - "description": "Get an individual ChartVersion.", + }, + "post": { + "description": "Upsert a ChartVersion.", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ "ChartVersions" ], - "summary": "Get an individual ChartVersion", + "summary": "Upsert a ChartVersion", "parameters": [ { - "type": "string", - "description": "The selector of the ChartVersion, which can be either a numeric ID or chart/version.", - "name": "selector", - "in": "path", - "required": true + "description": "The ChartVersion to upsert", + "name": "chartVersion", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/sherlock.ChartVersionV3Create" + } } ], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "schema": { "$ref": "#/definitions/sherlock.ChartVersionV3" } @@ -684,16 +685,18 @@ } } } - }, - "patch": { - "description": "Edit an individual ChartVersion.", + } + }, + "/api/chart-versions/v3/{selector}": { + "get": { + "description": "Get an individual ChartVersion.", "produces": [ "application/json" ], "tags": [ "ChartVersions" ], - "summary": "Edit an individual ChartVersion", + "summary": "Get an individual ChartVersion", "parameters": [ { "type": "string", @@ -701,15 +704,6 @@ "name": "selector", "in": "path", "required": true - }, - { - "description": "The edits to make to the ChartVersion", - "name": "chartVersion", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/sherlock.ChartVersionV3Edit" - } } ], "responses": { @@ -756,35 +750,37 @@ } } } - } - }, - "/api/chartVersions/v3": { - "post": { - "description": "Upsert a ChartVersion.", - "consumes": [ - "application/json" - ], + }, + "patch": { + "description": "Edit an individual ChartVersion.", "produces": [ "application/json" ], "tags": [ "ChartVersions" ], - "summary": "Upsert a ChartVersion", + "summary": "Edit an individual ChartVersion", "parameters": [ { - "description": "The ChartVersion to upsert", + "type": "string", + "description": "The selector of the ChartVersion, which can be either a numeric ID or chart/version.", + "name": "selector", + "in": "path", + "required": true + }, + { + "description": "The edits to make to the ChartVersion", "name": "chartVersion", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/sherlock.ChartVersionV3Create" + "$ref": "#/definitions/sherlock.ChartVersionV3Edit" } } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "schema": { "$ref": "#/definitions/sherlock.ChartVersionV3" } diff --git a/sherlock/docs/swagger.yaml b/sherlock/docs/swagger.yaml index 283dc09d2..1bd63b8ea 100644 --- a/sherlock/docs/swagger.yaml +++ b/sherlock/docs/swagger.yaml @@ -2195,21 +2195,22 @@ paths: summary: List AppVersions matching a filter tags: - AppVersions - /api/app-versions/v3/{selector}: - get: - description: Get an individual AppVersion. + post: + consumes: + - application/json + description: Upsert a AppVersion. parameters: - - description: The selector of the AppVersion, which can be either a numeric - ID or chart/version. - in: path - name: selector + - description: The AppVersion to upsert + in: body + name: appVersion required: true - type: string + schema: + $ref: '#/definitions/sherlock.AppVersionV3Create' produces: - application/json responses: - "200": - description: OK + "201": + description: Created schema: $ref: '#/definitions/sherlock.AppVersionV3' "400": @@ -2236,11 +2237,12 @@ paths: description: Internal Server Error schema: $ref: '#/definitions/errors.ErrorResponse' - summary: Get an individual AppVersion + summary: Upsert a AppVersion tags: - AppVersions - patch: - description: Edit an individual AppVersion. + /api/app-versions/v3/{selector}: + get: + description: Get an individual AppVersion. parameters: - description: The selector of the AppVersion, which can be either a numeric ID or chart/version. @@ -2248,12 +2250,6 @@ paths: name: selector required: true type: string - - description: The edits to make to the AppVersion - in: body - name: appVersion - required: true - schema: - $ref: '#/definitions/sherlock.AppVersionV3Edit' produces: - application/json responses: @@ -2285,26 +2281,29 @@ paths: description: Internal Server Error schema: $ref: '#/definitions/errors.ErrorResponse' - summary: Edit an individual AppVersion + summary: Get an individual AppVersion tags: - AppVersions - /api/appVersions/v3: - post: - consumes: - - application/json - description: Upsert a AppVersion. + patch: + description: Edit an individual AppVersion. parameters: - - description: The AppVersion to upsert + - description: The selector of the AppVersion, which can be either a numeric + ID or chart/version. + in: path + name: selector + required: true + type: string + - description: The edits to make to the AppVersion in: body name: appVersion required: true schema: - $ref: '#/definitions/sherlock.AppVersionV3Create' + $ref: '#/definitions/sherlock.AppVersionV3Edit' produces: - application/json responses: - "201": - description: Created + "200": + description: OK schema: $ref: '#/definitions/sherlock.AppVersionV3' "400": @@ -2331,7 +2330,7 @@ paths: description: Internal Server Error schema: $ref: '#/definitions/errors.ErrorResponse' - summary: Upsert a AppVersion + summary: Edit an individual AppVersion tags: - AppVersions /api/chart-versions/procedures/v3/changelog: @@ -2462,21 +2461,22 @@ paths: summary: List ChartVersions matching a filter tags: - ChartVersions - /api/chart-versions/v3/{selector}: - get: - description: Get an individual ChartVersion. + post: + consumes: + - application/json + description: Upsert a ChartVersion. parameters: - - description: The selector of the ChartVersion, which can be either a numeric - ID or chart/version. - in: path - name: selector + - description: The ChartVersion to upsert + in: body + name: chartVersion required: true - type: string + schema: + $ref: '#/definitions/sherlock.ChartVersionV3Create' produces: - application/json responses: - "200": - description: OK + "201": + description: Created schema: $ref: '#/definitions/sherlock.ChartVersionV3' "400": @@ -2503,11 +2503,12 @@ paths: description: Internal Server Error schema: $ref: '#/definitions/errors.ErrorResponse' - summary: Get an individual ChartVersion + summary: Upsert a ChartVersion tags: - ChartVersions - patch: - description: Edit an individual ChartVersion. + /api/chart-versions/v3/{selector}: + get: + description: Get an individual ChartVersion. parameters: - description: The selector of the ChartVersion, which can be either a numeric ID or chart/version. @@ -2515,12 +2516,6 @@ paths: name: selector required: true type: string - - description: The edits to make to the ChartVersion - in: body - name: chartVersion - required: true - schema: - $ref: '#/definitions/sherlock.ChartVersionV3Edit' produces: - application/json responses: @@ -2552,26 +2547,29 @@ paths: description: Internal Server Error schema: $ref: '#/definitions/errors.ErrorResponse' - summary: Edit an individual ChartVersion + summary: Get an individual ChartVersion tags: - ChartVersions - /api/chartVersions/v3: - post: - consumes: - - application/json - description: Upsert a ChartVersion. + patch: + description: Edit an individual ChartVersion. parameters: - - description: The ChartVersion to upsert + - description: The selector of the ChartVersion, which can be either a numeric + ID or chart/version. + in: path + name: selector + required: true + type: string + - description: The edits to make to the ChartVersion in: body name: chartVersion required: true schema: - $ref: '#/definitions/sherlock.ChartVersionV3Create' + $ref: '#/definitions/sherlock.ChartVersionV3Edit' produces: - application/json responses: - "201": - description: Created + "200": + description: OK schema: $ref: '#/definitions/sherlock.ChartVersionV3' "400": @@ -2598,7 +2596,7 @@ paths: description: Internal Server Error schema: $ref: '#/definitions/errors.ErrorResponse' - summary: Upsert a ChartVersion + summary: Edit an individual ChartVersion tags: - ChartVersions /api/charts/v3: