This repository contains the API artifacts for APIOps, defining the API Management (APIM) configuration and utilities.
- apimartifacts: This directory contains the configuration files for API Management.
- utils: This directory holds example policies and a demo Python Jupyter notebook to showcase APIM GenAI capabilities.
The apimartifacts directory includes all necessary configuration files to set up and manage your API Management instance. These files typically include API definitions, policies, and other configuration settings required to deploy and maintain your APIs within the APIM service.
To publish and pull configurations using the pipelines stored in the .github/workflows directory:
-
Publishing Configurations: run-publisher.yaml
- Ensure your changes to the configuration files in the
apimartifactsdirectory are committed to your branch. - Trigger the publishing pipeline by pushing your changes to the repository. The pipeline will automatically deploy the updated configurations to your APIM instance.
- Ensure your changes to the configuration files in the
-
Pulling Configurations: run-extractor.yaml
- Use the pull pipeline to fetch the latest configurations from your APIM instance.
- This can be done by triggering the pull pipeline manually or through a scheduled run, ensuring your local repository is always in sync with the deployed configurations.
The utils directory provides:
- Example policies to help you get started with API Management. These policies can be used as templates or references to create custom policies tailored to your specific needs.
- A demo Python Jupyter notebook that demonstrates the capabilities of APIM GenAI. This notebook includes sample code and explanations to help you understand how to leverage APIM GenAI features in your API management workflows.
-
Explore the
apimartifactsDirectory:- Navigate to the
apimartifactsdirectory to find the configuration files. - Review and modify these files as needed to match your API Management requirements.
- Deploy the configuration files to your APIM instance using the appropriate deployment tools or scripts.
- Navigate to the
-
Utilize the
utilsDirectory:- Check out the example policies in the
utilsdirectory to understand how to implement common API Management scenarios. - Use the demo Python Jupyter notebook to experiment with APIM GenAI capabilities. Follow the instructions in the notebook to run the code and observe the results.
- Adapt the provided examples to fit your specific use cases and integrate them into your APIOps workflow.
- Check out the example policies in the
Feel free to explore the directories and use the provided resources to enhance your APIOps workflow.