From ab2451afbfa67c32b03466238c4c3948235e2d04 Mon Sep 17 00:00:00 2001 From: Calvin Chan Date: Mon, 29 Nov 2021 16:16:52 -0800 Subject: [PATCH] Remove unused API from ANT95 swagger --- .../stable/2021-03-01/ResourceProvider.json | 40 ------------------- ...ithubAccessTokenForAppserviceCLIAsync.json | 22 ---------- 2 files changed, 62 deletions(-) delete mode 100644 specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/ResourceProvider.json b/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/ResourceProvider.json index ec0427c50bc9..a2df7a1fed31 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/ResourceProvider.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/ResourceProvider.json @@ -15,46 +15,6 @@ "application/json" ], "paths": { - "/providers/Microsoft.Web/generateGithubAccessTokenForAppserviceCLI": { - "post": { - "summary": "Exchange code for GitHub access token for AppService CLI", - "description": "Description for Exchange code for GitHub access token for AppService CLI", - "operationId": "GenerateGithubAccessTokenForAppserviceCLIAsync", - "parameters": [ - { - "name": "request", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AppserviceGithubTokenRequest" - }, - "x-ms-client-flatten": true - }, - { - "$ref": "#/parameters/apiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/AppserviceGithubToken" - } - }, - "default": { - "description": "App Service error response.", - "schema": { - "$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse" - } - } - }, - "x-ms-examples": { - "Generate Github Access Token For AppService CLI": { - "$ref": "./examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json" - } - } - } - }, "/providers/Microsoft.Web/publishingUsers/web": { "get": { "summary": "Gets publishing user", diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json b/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json deleted file mode 100644 index a81949a9b044..000000000000 --- a/specification/web/resource-manager/Microsoft.Web/stable/2021-03-01/examples/GenerateGithubAccessTokenForAppserviceCLIAsync.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345", - "api-version": "2021-03-01", - "request": { - "code": "somecode", - "state": "somestate" - } - }, - "responses": { - "200": { - "headers": {}, - "body": { - "accessToken": "githubaccesstoken", - "scope": "repo", - "tokenType": "bearer", - "gotToken": false, - "errorMessage": "The code passed is incorrect or expired." - } - } - } -}