Azure API management is a comprehensive solution to add intermediate layer to handle all you APIs from one single point. Below is a well described illustration on main components.
First of all we will see how to create a API management service and how it will be presented to end users via its Portal. In this example we will not add a new API but use in built sample for explanation porpose.
1. Create Azure API management service
I am creating a new API Management Service by providing Subscription, Resource Group etcOnce hit the Create button it could take bit of time to complete the creation process. Once created we can see the Portal URL within many details presended in Overview.
Also notice that, upon create, we have already a sample API created which we can use to play around.
By clicking Developer Portal link we will get the Portal opned in a different tab in Administrative Mode.
Alternatively you can publish the Portal by clicking Publish under Portal overview. (It is also advisable to Enable CORS)
To view the end user experiance, you need to open the Portal in InProvate browser.
If you dont publish the Portal as per one of the ways explaind in previous step, Portal will not be visible. Below error will be shown.
Assuming you are a new user, now can be sign up (use a different email than your admin one already in the system as the Administrator)
This will also send you a email to verify before proceeding.
Alternatively, you can add users from Users under Developer Portal.
4. Portal Point : End user access to Portal
Once logged in as the end user, browse to Products menu item to enable subscriptions.
After that, under profile I can see Starter is Active but Unlimited is still in Sumbitted status.
Click it and click Try this Operation for any method. I selected Retrieve resource. Resulted popup will allow you to select the subscription too. Click Send.
Now we are getting the expected 200 OK response back, meaning we are executint it correctly and getting a respose back.
No comments:
Post a Comment