Configuring Dapr policies with API management
To reach our goal, we have to create an API first and then a set of operations, not forgetting to deploy the API to our self-hosted gateway.
To have a good understanding of the terminology of APIM, I suggest reading the documentation at https://docs.microsoft.com/en-us/azure/api-management/api-management-terminology.
Let’s create an API first, as shown in the following screenshot:
Figure 10.5 – Creating an API
As depicted in Figure 10.5, I chose to configure the API; the API named BBmB API
has a /api
URL suffix. It is present in all the default products (this is just to simplify the scenario), and I would like to deploy it only to the self-hosted gateway named daprgateway
we created in the previous section.
With an API defined, we are now ready to create our first operation to check whether everything works as expected. The following screenshot highlights how to do this: