forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CICD Swagger changes for git config APIs (Azure#11528)
* Swagger changes added for workspace & gitintegration specs * Updated workspace spec related git repository * Added gitintegration spec * Updated example files related to workspace * Added gitintegration example files
- Loading branch information
1 parent
1034b23
commit c0877d2
Showing
8 changed files
with
224 additions
and
1 deletion.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
.../preview/2019-06-01-preview/examples/WorkspaceGitRepoManagement_getGitHubAccessToken.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"parameters": { | ||
"workspaceName": "workspace1", | ||
"api-version": "2019-06-01-preview", | ||
"x-ms-client-request-id": "c8b9a072-76f6-4383-8350-db4431deb921", | ||
"gitHubAccessTokenRequest": { | ||
"gitHubClientId": "wvwvwvwvwv", | ||
"gitHubAccessCode": "cwvcwvwev", | ||
"gitHubAccessTokenBaseUrl": "https://github.com/login/oauth/access_token" | ||
}, | ||
"endpoint": "https://azure.com" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"gitHubAccessToken": "zycdwcsdc" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
123 changes: 123 additions & 0 deletions
123
...ation/synapse/data-plane/Microsoft.Synapse/preview/2019-06-01-preview/gitintegration.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"version": "2019-06-01-preview", | ||
"title": "ArtifactsClient" | ||
}, | ||
"x-ms-parameterized-host": { | ||
"hostTemplate": "{endpoint}", | ||
"useSchemePrefix": false, | ||
"parameters": [ | ||
{ | ||
"$ref": "#/parameters/Endpoint" | ||
} | ||
] | ||
}, | ||
"schemes": [ | ||
"https" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"paths": { | ||
"/getGitHubAccessToken": { | ||
"post": { | ||
"tags": [ | ||
"WorkspaceGitRepoManagement" | ||
], | ||
"operationId": "WorkspaceGitRepoManagement_getGitHubAccessToken", | ||
"description": "Get the GitHub access token.", | ||
"x-ms-examples": { | ||
"Get SOL job query string": { | ||
"$ref": "./examples/WorkspaceGitRepoManagement_getGitHubAccessToken.json" | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"name": "x-ms-client-request-id", | ||
"x-ms-client-name": "ClientRequestId", | ||
"in": "header", | ||
"required": false, | ||
"type": "string", | ||
"description": "Can provide a guid, which is helpful for debugging and to provide better customer support" | ||
}, | ||
{ | ||
"name": "api-version", | ||
"in": "query", | ||
"required": true, | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "gitHubAccessTokenRequest", | ||
"in": "body", | ||
"required": true, | ||
"schema": { | ||
"$ref": "#/definitions/GitHubAccessTokenRequest" | ||
} | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Success", | ||
"schema": { | ||
"$ref": "#/definitions/GitHubAccessTokenResponse" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"GitHubAccessTokenRequest": { | ||
"type": "object", | ||
"properties": { | ||
"gitHubClientId": { | ||
"description": "The GitHub Client Id.", | ||
"type": "string" | ||
}, | ||
"gitHubAccessCode": { | ||
"description": "The GitHub Access code.", | ||
"type": "string" | ||
}, | ||
"gitHubAccessTokenBaseUrl": { | ||
"description": "The GitHub access token base URL.", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"gitHubClientId", | ||
"gitHubAccessCode", | ||
"gitHubAccessTokenBaseUrl" | ||
] | ||
}, | ||
"GitHubAccessTokenResponse": { | ||
"type": "object", | ||
"properties": { | ||
"gitHubAccessToken": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"parameters": { | ||
"Endpoint": { | ||
"name": "endpoint", | ||
"description": "The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.", | ||
"required": true, | ||
"type": "string", | ||
"in": "path", | ||
"x-ms-skip-url-encoding": true, | ||
"x-ms-parameter-location": "client" | ||
}, | ||
"ApiVersionParameter": { | ||
"name": "api-version", | ||
"in": "query", | ||
"required": true, | ||
"type": "string", | ||
"description": "The Synapse client API Version." | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters