Skip to content

Commit

Permalink
Add Swagger doc for Power Platform
Browse files Browse the repository at this point in the history
  • Loading branch information
justinyoo committed Oct 2, 2023
1 parent 78bdeb7 commit e68f1bc
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions infra/swagger-apim-github.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"swagger": "2.0",
"info": {
"title": "GitHub AuthN APIs",
"version": "1.0",
"description": "This is a set of APIs that deals with GitHub authN APIs.",
"license": {
"name": "MIT",
"url": "http://opensource.org/licenses/MIT"
}
},
"host": "apim-{{AZURE_ENV_NAME}}.azure-api.net",
"basePath": "/github",
"schemes": [
"https"
],
"securityDefinitions": {
"apiKeyHeader": {
"type": "apiKey",
"name": "Ocp-Apim-Subscription-Key",
"in": "header"
},
"apiKeyQuery": {
"type": "apiKey",
"name": "subscription-key",
"in": "query"
}
},
"security": [
{
"apiKeyHeader": []
},
{
"apiKeyQuery": []
}
],
"paths": {
"/access-token": {
"post": {
"description": "This gets the OAuth access token for GitHub API.",
"operationId": "getAccessToken",
"summary": "Gets the GitHub OAuth access token",
"tags": [
"auth"
],
"produces": [
"text/plain"
],
"responses": {
"200": {
"description": "This returns the completion generated from the OpenAI API.",
"schema": {
"type": "string"
},
"examples": {
"text/plain": "WW91VHViZSBTZXJpYWxpc2Vy"
}
}
}
}
}
},
"definitions": {},
"tags": []
}

0 comments on commit e68f1bc

Please sign in to comment.