Hi! In this video, I will demonstrate how to integrate SnapLogic with Azure API Management Services.
You will need to login into Azure API Managed Services and add an API Service.
On this screen, populate all the necessary fields to create an API service. As a rule of thumb, all API calls would go through the service, which will be in a URL format of servicename.azure-api.net. Azure hides information regarding the backend services that the API connects to. Once you create the API service, the API publisher portal and the Developer portal is available and a Developer Portal URL and a Gateway URL are generated.
Now on the SnapLogic Manager, I open a YAML based Swagger file from the menu on the left panel. In this demo, I converted my project’s YAML representation to JSON format.
Once the YAML specific Swagger file has been generated, we’ll go back to the Azure API Management Services portal.
Then click on APIs and OpenAPI specification link to upload the JSON-based Swagger specification.
Azure Management Services supports API versions to lessen the need for maintenance.
Once the API has been added to the service, verify in the settings if the web service URL that refers to the SnapLogic triggered task URL is accurate before selecting any additional security options.
Before I can invoke the API, I will create a new API product and associate one or more APIs with this product.
Now that I am done creating a new API product, I need to set policies and publish the new product.
We are now ready to run a series of tests. And to do this, I need to select the API I need to test.
I need to add multiple parameters that the API requires in addition to passing the APIs bearer token as part of the HTTP header area to authenticate with the SnapLogic platform.
Once I have set the parameters and the HTTP header, I can then get a response from the API invocation.
I can see that I received a 200 OK response, which indicates a successful invocation of the SnapLogic API through the Azure API Management Services.
Alternatively, this can also be achieved through the Developer portal. You’d need to enter the necessary parameters and the bearer tokens.
Once the test indicates satisfactory results, the API can then be consumed in a few ways. Users can use the API Gateway URL and invoke it directly from their browser or invoke it from any REST client or continue to use the Azure Developer portal.
In this demo, I will use Postman to invoke the API and as you can see I have received a successful response from the API.
And we can learn more about the API usage and trends from the Azure portal. We can see the API’s usage patterns, the health of the API, and its historical activity.
Thank you for watching this video and to learn more please visit docs-snaplogic.atlassian.net.