Categorygithub.com/magodo/azure-rest-api-index
repositorypackage
0.0.0-20240527020747-49612dac72e6
Repository: https://github.com/magodo/azure-rest-api-index.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

azure-rest-api-index

A tool/library to index https://github.com/Azure/azure-rest-api-specs, which is able to map a live request to its definition in the swagger spec.

Usage

First, you'll need to build the index by running:

azure-rest-api-index build -o index.json <specs rootdir>/specification

The dedup.json above is a file used for resolving duplicated swagger definitions, which is maintained by the repo.

After the index is built, you can then lookup for any live request by the lookup subcommand. E.g. to look up a GET of a resource group, you can do:

azure-rest-api-index lookup -index index.json -method=GET -url "https://management.azure.com/subscriptions/sub1/resourceGroups/rg1?api-version=2022-09-01"