added code to pull down msft cvrf api
This commit is contained in:
parent
fff732f932
commit
836dced0a2
2 changed files with 16 additions and 0 deletions
16
tools/microsoft/generate_cvrf_api_ruby.sh
Executable file
16
tools/microsoft/generate_cvrf_api_ruby.sh
Executable file
|
@ -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'
|
BIN
tools/microsoft/openapi_client_msft_cvrf_api.zip
Normal file
BIN
tools/microsoft/openapi_client_msft_cvrf_api.zip
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue