diff --git a/src/openapi.yaml b/src/openapi.yaml index 8cd42c9c..9491593c 100644 --- a/src/openapi.yaml +++ b/src/openapi.yaml @@ -733,6 +733,8 @@ paths: $ref: './resources/helm/EnvironmentHelmStatus.yaml' /helm/{helmId}: $ref: './resources/helm/Helm.yaml' + /helm/{helmId}/commit: + $ref: './resources/helm/HelmCommit.yaml' /helm/{helmId}/advancedSettings: $ref: './resources/helm/HelmAdvancedSettings.yaml' /helm/{helmId}/deploy: diff --git a/src/parameters/_index.yaml b/src/parameters/_index.yaml index 5db0c089..8c565c9d 100644 --- a/src/parameters/_index.yaml +++ b/src/parameters/_index.yaml @@ -84,3 +84,5 @@ helmId: $ref: ./path/helmId.yaml helmRepositoryId: $ref: ./path/helmRepositoryId.yaml +helmOf: + $ref: ./query/helmOf.yaml diff --git a/src/parameters/query/helmOf.yaml b/src/parameters/query/helmOf.yaml new file mode 100644 index 00000000..81681117 --- /dev/null +++ b/src/parameters/query/helmOf.yaml @@ -0,0 +1,6 @@ +name: of +in: query +description: Source of git commit. Can be 'chart' or 'values' +schema: + type: string + default: chart diff --git a/src/resources/helm/HelmCommit.yaml b/src/resources/helm/HelmCommit.yaml new file mode 100644 index 00000000..d1990a73 --- /dev/null +++ b/src/resources/helm/HelmCommit.yaml @@ -0,0 +1,22 @@ +get: + summary: 'List last helm commits' + description: Returns list of the last 100 commits made on the repository linked to helm + operationId: listHelmCommit + parameters: + - $ref: '../../parameters/path/helmId.yaml' + - $ref: '../../parameters/query/helmOf.yaml' + tags: + - Helm Main Calls + responses: + '200': + description: 'List Helm commits' + content: + application/json: + schema: + $ref: '../../schemas/CommitResponseList.yaml' + '401': + $ref: '../../responses/NotAuthorized.yaml' + '403': + $ref: '../../responses/Forbidden.yaml' + '404': + $ref: '../../responses/NotFound.yaml'