diff --git a/tools/microsoft/generate_cvrf_api_ruby.sh b/tools/microsoft/generate_cvrf_api_ruby.sh new file mode 100755 index 0000000..adfcce3 --- /dev/null +++ b/tools/microsoft/generate_cvrf_api_ruby.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +# generate cvrf msft api using online generator service +#require 'rest-client' + +# Execute an HTTP request to generate a Ruby client +#RestClient.post( +#'https://api-latest-master.openapi-generator.tech/api/gen/clients/ruby', +#{ "openAPIUrl": "https://raw.githubusercontent.com/microsoft/MSRC-Microsoft-Security-Updates-API/main/docs/swagger.json" }, +#:content_type => 'application/json', +#:accept => 'application/json' +#) + +curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' \ +-d '{"openAPIUrl": "https://raw.githubusercontent.com/microsoft/MSRC-Microsoft-Security-Updates-API/main/docs/swagger.json"}' \ +'https://api-latest-master.openapi-generator.tech/api/gen/clients/ruby' diff --git a/tools/microsoft/openapi_client_msft_cvrf_api.zip b/tools/microsoft/openapi_client_msft_cvrf_api.zip new file mode 100644 index 0000000..ff8d323 Binary files /dev/null and b/tools/microsoft/openapi_client_msft_cvrf_api.zip differ