You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/openapi-apim-integrate-visual-studio.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
-
title: Create serverless APIs in Visual Studio using Azure Functions and API Management
3
-
description: Use Visual Studio to create an HTTP triggered function along with an OpenAPI definition, which enables Azure API Management integration so that other apps and services can call your serverless function-based API.
2
+
title: Create serverless APIs using Azure Functions and API Management
3
+
description: Use Visual Studio to create an HTTP triggered function that uses an OpenAPI definition (formerly swagger) to expose a serverless API using API Management.
4
4
ms.topic: tutorial
5
-
ms.date: 01/18/2023
5
+
ms.date: 08/04/2024
6
6
---
7
7
8
8
# Create serverless APIs in Visual Studio using Azure Functions and API Management integration
@@ -16,11 +16,11 @@ In this tutorial, you learn how to:
16
16
> * Install the OpenAPI extension
17
17
> * Add an HTTP trigger endpoint, which includes OpenAPI definitions
18
18
> * Test function APIs locally using built-in OpenAPI functionality
19
-
> * Publish project to a function app in Azure with API Management integration
20
-
> *Get the access key for the function app and set it in API Management
19
+
> * Publish project to a function app in Azure
20
+
> *Enable API Management integration
21
21
> * Download the OpenAPI definition file
22
22
23
-
The serverless function you create provides an API that lets you determine whether an emergency repair on a wind turbine is cost-effective. Because both the function app and API Management instance you create use consumption plans, your cost for completing this tutorial is minimal.
23
+
The serverless function you create provides an API that lets you determine whether an emergency repair on a wind turbine is cost-effective. Since you create both the function app and API Management instance as consumption plans, your cost for completing this tutorial is minimal.
24
24
25
25
## Prerequisites
26
26
@@ -62,7 +62,7 @@ The Azure Functions project template in Visual Studio creates a project that you
62
62
63
63
1. Select **Create** to create the function project.
64
64
65
-
Next, you update the project by installing the OpenAPI extension for Azure Functions, which enables the discoverabilty of API endpoints in your app.
65
+
Next, you update the project by installing the OpenAPI extension for Azure Functions, which enables the discoverability of API endpoints in your app.
66
66
67
67
## Install the OpenAPI extension
68
68
@@ -77,18 +77,18 @@ To install the OpenAPI extension:
You might need to updated the [specific version](https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.Extensions.OpenApi), based on your version of .NET.
80
+
You might need to update the [specific version](https://www.nuget.org/packages/Microsoft.Azure.Functions.Worker.Extensions.OpenApi), based on your version of .NET.
You might need to updated the [specific version](https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.OpenApi), based on your version of .NET.
87
+
You might need to update the [specific version](https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.OpenApi), based on your version of .NET.
88
88
89
89
---
90
90
91
-
Next, you can add create your HTTP endpoint function.
91
+
Now, you can add your HTTP endpoint function.
92
92
93
93
## Add an HTTP endpoint function
94
94
@@ -240,7 +240,7 @@ Now that the function key is set, you can call the `turbine` API endpoint to ver
240
240
241
241
## Download the OpenAPI definition
242
242
243
-
If your API works as expected, you can download the OpenAPI definition for the new hosted APIs from API Managment.
243
+
If your API works as expected, you can download the OpenAPI definition for the new hosted APIs from API Management.
244
244
245
245
1. 1. Under **APIs**, select**OpenAPI Document on Azure Functions**, selectthe ellipses (**...**), and select**Export**.
246
246
@@ -260,7 +260,7 @@ Select **Delete resource group**, type the name of your group in the text box to
260
260
261
261
## Next steps
262
262
263
-
You've used Visual Studio 2022 to create a functionthat is self-documenting because of the [OpenAPI Extension](https://github.com/Azure/azure-functions-openapi-extension) and integrated with API Management. You can now refine the definition in API Management in the portal. You can also [learn more about API Management](../api-management/api-management-key-concepts.md).
263
+
You've used Visual Studio 2022 to create a functionthat's self-documenting because of the [OpenAPI Extension](https://github.com/Azure/azure-functions-openapi-extension) and integrated with API Management. You can now refine the definition in API Management in the portal. You can also [learn more about API Management](../api-management/api-management-key-concepts.md).
264
264
265
265
> [!div class="nextstepaction"]
266
266
> [Edit the OpenAPI definition in API Management](../api-management/edit-api.md)
0 commit comments