16 lines
737 B
Bash
Executable file
16 lines
737 B
Bash
Executable file
#!/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'
|