From b1a931ab2680b7e0a6eed5f78a590a8e3d823040 Mon Sep 17 00:00:00 2001 From: Melvin Zottola Date: Fri, 27 Oct 2023 12:06:53 +0200 Subject: [PATCH] chore: Temporary endpoints to migrate git --- src/openapi.yaml | 8 +++++++ ...rganizationAccountGitAuthProviderTemp.yaml | 16 ++++++++++++++ ...tionAccountGitRepositoryBitbucketTemp.yaml | 22 +++++++++++++++++++ ...izationAccountGitRepositoryGithubTemp.yaml | 22 +++++++++++++++++++ ...izationAccountGitRepositoryGitlabTemp.yaml | 22 +++++++++++++++++++ 5 files changed, 90 insertions(+) create mode 100644 src/resources/OrganizationAccountGitAuthProviderTemp.yaml create mode 100644 src/resources/OrganizationAccountGitRepositoryBitbucketTemp.yaml create mode 100644 src/resources/OrganizationAccountGitRepositoryGithubTemp.yaml create mode 100644 src/resources/OrganizationAccountGitRepositoryGitlabTemp.yaml diff --git a/src/openapi.yaml b/src/openapi.yaml index 6a395db9..36e4bba4 100644 --- a/src/openapi.yaml +++ b/src/openapi.yaml @@ -315,16 +315,24 @@ paths: $ref: './resources/OrganizationGithubAppDisconnect.yaml' /organization/{organizationId}/account/gitAuthProvider: $ref: './resources/OrganizationAccountGitAuthProvider.yaml' + /organization/{organizationId}/account/gitAuthProviderTemp: + $ref: './resources/OrganizationAccountGitAuthProviderTemp.yaml' /organization/{organizationId}/account/github/repository: $ref: './resources/OrganizationAccountGitRepositoryGithub.yaml' + /organization/{organizationId}/account/github/repositoryTemp: + $ref: './resources/OrganizationAccountGitRepositoryGithubTemp.yaml' /organization/{organizationId}/account/github/repository/branch: $ref: './resources/OrganizationAccountGitRepositoryGithubBranch.yaml' /organization/{organizationId}/account/gitlab/repository: $ref: './resources/OrganizationAccountGitRepositoryGitlab.yaml' + /organization/{organizationId}/account/gitlab/repositoryTemp: + $ref: './resources/OrganizationAccountGitRepositoryGitlabTemp.yaml' /organization/{organizationId}/account/gitlab/repository/branch: $ref: './resources/OrganizationAccountGitRepositoryGitlabBranch.yaml' /organization/{organizationId}/account/bitbucket/repository: $ref: './resources/OrganizationAccountGitRepositoryBitbucket.yaml' + /organization/{organizationId}/account/bitbucket/repositoryTemp: + $ref: './resources/OrganizationAccountGitRepositoryBitbucketTemp.yaml' /organization/{organizationId}/account/bitbucket/repository/branch: $ref: './resources/OrganizationAccountGitRepositoryBitbucketBranch.yaml' /organization/{organizationId}/webhook: diff --git a/src/resources/OrganizationAccountGitAuthProviderTemp.yaml b/src/resources/OrganizationAccountGitAuthProviderTemp.yaml new file mode 100644 index 00000000..629800f4 --- /dev/null +++ b/src/resources/OrganizationAccountGitAuthProviderTemp.yaml @@ -0,0 +1,16 @@ +get: + summary: 'Get git provider accounts' + operationId: getOrganizationGitProviderAccountTemp + parameters: + - $ref: '../parameters/path/organizationId.yaml' + tags: + - Organization Account Git Repositories + responses: + '200': + description: 'Get account' + content: + application/json: + schema: + $ref: '../schemas/GitAuthProviderResponseList.yaml' + '401': + $ref: '../responses/NotAuthorized.yaml' diff --git a/src/resources/OrganizationAccountGitRepositoryBitbucketTemp.yaml b/src/resources/OrganizationAccountGitRepositoryBitbucketTemp.yaml new file mode 100644 index 00000000..6fa87da5 --- /dev/null +++ b/src/resources/OrganizationAccountGitRepositoryBitbucketTemp.yaml @@ -0,0 +1,22 @@ +get: + summary: 'Get bitbucket repositories of the connected user' + operationId: getOrganizationBitbucketRepositoriesTemp + parameters: + - $ref: '../parameters/path/organizationId.yaml' + - in: query + name: gitTokenId + schema: + type: string + format: uuid + description: The git token id that must be used for the application + tags: + - Organization Account Git Repositories + responses: + '200': + description: 'Get bitbucket repositories' + content: + application/json: + schema: + $ref: '../schemas/GitRepositoryResponseList.yaml' + '401': + $ref: '../responses/NotAuthorized.yaml' diff --git a/src/resources/OrganizationAccountGitRepositoryGithubTemp.yaml b/src/resources/OrganizationAccountGitRepositoryGithubTemp.yaml new file mode 100644 index 00000000..ed4d010f --- /dev/null +++ b/src/resources/OrganizationAccountGitRepositoryGithubTemp.yaml @@ -0,0 +1,22 @@ +get: + summary: 'Get github repositories of the connected user' + operationId: getOrganizationGithubRepositoriesTemp + parameters: + - $ref: '../parameters/path/organizationId.yaml' + - in: query + name: gitTokenId + schema: + type: string + format: uuid + description: The git token id that must be used for the application + tags: + - Organization Account Git Repositories + responses: + '200': + description: 'Get github repositories' + content: + application/json: + schema: + $ref: '../schemas/GitRepositoryResponseList.yaml' + '401': + $ref: '../responses/NotAuthorized.yaml' diff --git a/src/resources/OrganizationAccountGitRepositoryGitlabTemp.yaml b/src/resources/OrganizationAccountGitRepositoryGitlabTemp.yaml new file mode 100644 index 00000000..8b2cb06e --- /dev/null +++ b/src/resources/OrganizationAccountGitRepositoryGitlabTemp.yaml @@ -0,0 +1,22 @@ +get: + summary: 'Get gitlab repositories of the connected user' + operationId: getOrganizationGitlabRepositoriesTemp + parameters: + - $ref: '../parameters/path/organizationId.yaml' + - in: query + name: gitTokenId + schema: + type: string + format: uuid + description: The git token id that must be used for the application + tags: + - Organization Account Git Repositories + responses: + '200': + description: 'Get gitlab repositories' + content: + application/json: + schema: + $ref: '../schemas/GitRepositoryResponseList.yaml' + '401': + $ref: '../responses/NotAuthorized.yaml'