Swagger Integration with APIM

Swagger Integration with APIM

below are the simple steps to integrate the swagger with APIM,

Requirements

  • Java Spring boot app
  • Azure portal access with APIM

Below are the configuration changes in the Application

-   Application Side changes in the java spring boot code       

  • Hardcode the value of the APIM URL and context path in the code

No alt text provided for this image

Changes to be done in APIM to access the swagger ui for the microservice running in AKS.

1.      Disable ocip subscription key for the API & operations. Click on the API and then select Settings in the tab, disable the subscription required box.

No alt text provided for this image

2.  In the API, add a new Get operation which is used for accessing the swagger UI

-         Make sure the frontend configuration is having the context path as ‘/*’

-         The backend path is mentioned correctly to the microservice with swagger ui.

No alt text provided for this image

3.  Disable cors policy for this operation

-         Select All API and go to Inbound processing and edit Cors policy.

No alt text provided for this image

4. provide ‘*’ in the allowed origins and save the changes.

No alt text provided for this image

above are the simple step for the integration

To view or add a comment, sign in

More articles by sharan gowde

  • Agent Workflow Implementation Patterns

    This article is a continuation of the previous article, where we covered the Agentic Architecture and model. In this…

  • Decoding AI Agents: How Machines Think, Learn, and Optimize

    This article is continuation of the previous on where we discussed on the AI Agent Architecture Below are the set of AI…

    1 Comment
  • AI Agent Architecture

    This article provides the details on the AI Agent Architecture includes components, Usecase Lets understand what is AI…

  • Production Ready AI Multiagent

    The video "Production Ready AI MultiAgent" likely discusses how to build and deploy AI-based multi-agent systems in…

  • What is RAG ..?

    Lets check out

    2 Comments
  • Introduction To AI Agents

    This YouTube video covers the topic of AI agents, providing insights into their applications and capabilities. It…

    4 Comments
  • AI Powered Custom Copilot With Semantic Kernel

    In this article we talk on the custom copilot, use cases and code sample how to write the your own custom copilot What…

  • Unleashing the Power of Azure OpenAI : A Guide to Models and Use Cases

    Azure OpenAI provides a variety of models with different capabilities. These models can be accessed via Azure’s…

  • Semantic Kernel: A Revolutionary Approach to Building AI Applications

    Azure Semantic Kernel (SK) is an open-source framework from Microsoft designed to simplify the development of AI…

  • NLP : Important terms

    Natural Language Processing (NLP) is a field with a wide range of important terms and concepts. Here are some key terms…

Explore content categories