Skip to content

Commit

Permalink
chore: Temporary endpoints to migrate git
Browse files Browse the repository at this point in the history
  • Loading branch information
mzottola committed Oct 27, 2023
1 parent 1ca5e9f commit b1a931a
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
16 changes: 16 additions & 0 deletions src/resources/OrganizationAccountGitAuthProviderTemp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
get:

Check warning on line 1 in src/resources/OrganizationAccountGitAuthProviderTemp.yaml

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

operation-description

Operation "description" must be present and non-empty string.
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'
22 changes: 22 additions & 0 deletions src/resources/OrganizationAccountGitRepositoryBitbucketTemp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
get:

Check warning on line 1 in src/resources/OrganizationAccountGitRepositoryBitbucketTemp.yaml

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

operation-description

Operation "description" must be present and non-empty string.
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'
22 changes: 22 additions & 0 deletions src/resources/OrganizationAccountGitRepositoryGithubTemp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
get:

Check warning on line 1 in src/resources/OrganizationAccountGitRepositoryGithubTemp.yaml

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

operation-description

Operation "description" must be present and non-empty string.
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'
22 changes: 22 additions & 0 deletions src/resources/OrganizationAccountGitRepositoryGitlabTemp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
get:

Check warning on line 1 in src/resources/OrganizationAccountGitRepositoryGitlabTemp.yaml

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

operation-description

Operation "description" must be present and non-empty string.
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'

0 comments on commit b1a931a

Please sign in to comment.