Click here to Skip to main content
15,884,388 members
Articles / Hosted Services / Azure

WEB API Management - Part I

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
25 May 2015CPOL4 min read 9.6K   1  
WEB API Management - Part I

In this section, we’ll talk about WEB API Management. Now, from the high level, it’s look very much like Managing WEB API. Here, we need to talk about two things:

  1. You build a Web API and decide to do business with that means you want to sell that API, already a bunch of people are doing the same. Like you want to sell services like messaging service, phone call service may be anything. So, you will monetize that.
  2. The second scenario is you will be indirectly monetizing the APIs means you will be doing business indirectly. A fine example for the same is; you partner with some businesses and they get access to your service. Basically, it will help other companies for the integrated experience.

So, once you decided that you are going to experience one of these scenarios. Then, WEB API Management is best for you. Out of the box, it also helps to keep documentation side by side. Consider a scenario if you have given tons of API without documentation; this will be worst scenario to handle. So, from a developer perspective, if you are writing any API and you want to put the documentation then and there. Then, WEB API management is again a good choice.

One more scenario which I would like to emphasis here, let’s suppose you want to launch marketing Campaign and you don’t have analytics embedded with API; then you can’t even think of doing that. However, with Website, you can do the same exclusively by incorporating Google analytics and other stuff. But, if you are writing any API from scratch, then you need to think of key management, access, analytics in the backend and other important things. But, with turnkey service API Management, all these things will go away. So, I can have any WEB API hosted anywhere on any service provider; but Azure WEB API Management will sit in front of that. So, as you see below in the screen shot, developers develop/write APIs that calls their APIs via Azure proxy. And this is where all the magic happens, like analytics and other much needed behavior for WEB API done here.

2nd

Now, from Azure portal, you can create WEB API management as shown below in the screen shot:

3rd

4th

6th

7th

8th

Once, the API management portal has been created, you can go ahead and click on Manage link. This will open a new dashboard for API Management as shown below in the screen shot.

9th

Now, here you can do all sorts of things like adding new API or importing an existing API and set bunch of rules here on the same and then monitor the same on a timely basis.

32nd

Then, you can add operations to it like shown below with documentation to that.

12th

13th

Once it got added successfully, then it will bring you back to the original screen as shown below with API added.

14th

Next thing I need to do is to add the same in the products. Now, this is the place where you can change the behavior or apply policies. Here, you will add your APIs to the product. Below are the screen shots for the same.

15th

16th

17th

18th

19th

20th

Now, once I added the API to the products page, I need to publish the same as well.

22nd

Once done, then I will click on developer portal link; then this will open developer’s dashboard for the same. So, as I said, there are two things, publisher and developers. We have published our API first and now it's available for developer’s portal.

23rd

Now, when you click on APIs link, it will list your newly added API.

24th

Now, below you can see a variety of options to call the API means from different backend. One point to note here; in order to make a request, you need to have a valid subscription id else this will result in 401 error message as shown below:

26th

However, you can achieve the same from the Azure window itself.

27th

28th

Now, this is the actual API http://moviereview.rahulsahay.com/api/movies which is getting fetched via Azure WEB API proxy.

30th

Once this is done. you can now check its analytics in the API Management window as shown in the below screen shot.

31th

With this, I would like to wrap this session here. We’ll delve more in the coming session on the same. Till then, stay tuned and happy coding!

Image 26

This article was originally posted at http://myview.rahulnivi.net?p=1847

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Publicis Sapient
India India
Hey there, it's Rahul Sahay! I'm thrilled to be a platform specialist at Publicis Sapient, where I get to work on some exciting projects. I've been honing my skills in various aspects of the software development life cycle for more than 15 years, with a primary focus on web stack development. I've been fortunate to have contributed to numerous software development initiatives, ranging from client applications to web services and websites. Additionally, I enjoy crafting application architecture from scratch, and I've spent most of my time writing platform agnostic and cloud agnostic code. As a self-proclaimed code junkie, software development is more than just a job to me; it's a passion! And I consider myself lucky to have worked with an array of cutting-edge technologies, from .NetCore to SpringBoot 3, from Angular to React, and from Azure to AWS and many more cousin technologies...

- 🔭 I’m currently working @ below tech stacks
- Microservices,
- Distributed Systems,
- Spring Boot
- Spring Cloud
- System Design,
- Docker,
- Kubernetes,
- Message Queues,
- ELK Stack
- DotNetCore,
- Angular,
- Azure

- 💬 Ask me anything about my articles [My View](https://myview.rahulnivi.net/)
- 📫 How to reach me: [@rahulsahay19](https://twitter.com/rahulsahay19)
- 📫 Github: [@rahulsahay19](https://github.com/rahulsahay19)

Comments and Discussions

 
-- There are no messages in this forum --