-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add local debugging config for VS/VSCode
- Loading branch information
Showing
9 changed files
with
566 additions
and
1 deletion.
There are no files selected for viewing
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,6 @@ | ||
{ | ||
"recommendations": [ | ||
"ms-azuretools.vscode-azurefunctions", | ||
"ms-dotnettools.csdevkit" | ||
] | ||
} |
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,14 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Azure Functions Launch", | ||
"type": "coreclr", | ||
"request": "attach", | ||
"processId": "${command:azureFunctions.pickProcess}" | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"azureFunctions.projectSubpath": "src/YouTubeSummariser.ApiApp" | ||
"azureFunctions.projectSubpath": "src/YouTubeSummariser.ApiApp" | ||
} |
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,74 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "clean", | ||
"command": "dotnet", | ||
"args": [ | ||
"clean", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"type": "process", | ||
"problemMatcher": "$msCompile", | ||
"options": {} | ||
}, | ||
{ | ||
"label": "build", | ||
"command": "dotnet", | ||
"args": [ | ||
"build", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"type": "process", | ||
"dependsOn": "clean", | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": "$msCompile", | ||
"options": {} | ||
}, | ||
{ | ||
"label": "clean release", | ||
"command": "dotnet", | ||
"args": [ | ||
"clean", | ||
"--configuration", | ||
"Release", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"type": "process", | ||
"problemMatcher": "$msCompile", | ||
"options": {} | ||
}, | ||
{ | ||
"label": "publish", | ||
"command": "dotnet", | ||
"args": [ | ||
"publish", | ||
"--configuration", | ||
"Release", | ||
"/property:GenerateFullPaths=true", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"type": "process", | ||
"dependsOn": "clean release", | ||
"problemMatcher": "$msCompile", | ||
"options": {} | ||
}, | ||
{ | ||
"label": "start", | ||
"type": "shell", | ||
"dependsOn": "build", | ||
"options": { | ||
"cwd": "${workspaceFolder}/src/YouTubeSummariser.ApiApp/bin/Debug/net7.0", | ||
}, | ||
"command": "func host start", | ||
"isBackground": true, | ||
"problemMatcher": "$func-dotnet-watch" | ||
} | ||
] | ||
} |
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,101 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "YouTube Summariser", | ||
"version": "1.0", | ||
"description": "This is a set of APIs that summarises YouTube video content.", | ||
"license": { | ||
"name": "MIT", | ||
"url": "http://opensource.org/licenses/MIT" | ||
} | ||
}, | ||
"host": "apim-{{AZURE_ENV_NAME}}.azure-api.net", | ||
"basePath": "/aoai", | ||
"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": { | ||
"/summarise": { | ||
"post": { | ||
"description": "This gets the summary from a YouTube video.", | ||
"operationId": "summarise", | ||
"summary": "Gets the summary from YouTube video", | ||
"tags": [ | ||
"summary" | ||
], | ||
"parameters": [ | ||
{ | ||
"name": "summariseRequestModel", | ||
"in": "body", | ||
"schema": { | ||
"$ref": "#/definitions/summariseRequestModel" | ||
}, | ||
"description": "The YouTube video information." | ||
} | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"text/plain" | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Payload of String", | ||
"schema": { | ||
"type": "string" | ||
} | ||
}, | ||
"400": { | ||
"description": "This indicates the request is invalid." | ||
}, | ||
"500": { | ||
"description": "This indicates the server is not working as expected." | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"summariseRequestModel": { | ||
"type": "object", | ||
"properties": { | ||
"videoUrl": { | ||
"type": "string" | ||
}, | ||
"videoLanguageCode": { | ||
"type": "string" | ||
}, | ||
"summaryLanguageCode": { | ||
"type": "string" | ||
} | ||
}, | ||
"example": { | ||
"videoUrl": "string", | ||
"videoLanguageCode": "string", | ||
"summaryLanguageCode": "string" | ||
} | ||
} | ||
}, | ||
"tags": [] | ||
} |
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,94 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Local Debugging", | ||
"version": "1.0" | ||
}, | ||
"paths": { | ||
"/api/summarise": { | ||
"post": { | ||
"tags": [ | ||
"Summarise" | ||
], | ||
"operationId": "summarise", | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"text/plain", | ||
"application/json", | ||
"text/json" | ||
], | ||
"parameters": [ | ||
{ | ||
"in": "body", | ||
"name": "body", | ||
"schema": { | ||
"$ref": "#/definitions/SummariseRequestModel" | ||
} | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Success", | ||
"schema": { | ||
"type": "string" | ||
} | ||
}, | ||
"400": { | ||
"description": "Bad Request", | ||
"schema": { | ||
"$ref": "#/definitions/ProblemDetails" | ||
} | ||
}, | ||
"500": { | ||
"description": "Server Error" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"ProblemDetails": { | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"type": "string" | ||
}, | ||
"title": { | ||
"type": "string" | ||
}, | ||
"status": { | ||
"format": "int32", | ||
"type": "integer" | ||
}, | ||
"detail": { | ||
"type": "string" | ||
}, | ||
"instance": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": {} | ||
}, | ||
"SummariseRequestModel": { | ||
"type": "object", | ||
"properties": { | ||
"videoUrl": { | ||
"type": "string" | ||
}, | ||
"videoLanguageCode": { | ||
"type": "string" | ||
}, | ||
"summaryLanguageCode": { | ||
"type": "string" | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
}, | ||
"host": "localhost:5001", | ||
"schemes": [ | ||
"https" | ||
] | ||
} |
Oops, something went wrong.