Generate a PowerShell module from OpenAPI Specification File with Autorest and Autorest.PowerShell
We will use the Near Earth Object API from CNEOS-JPL
The Api is located at this URI https://api.nasa.gov/neo/?api_key=DEMO_KEY
autorest --powershell --input-file=neo\jpl-neo.yml --output-folder=module --namespace=frpsug
copy-item -Path .\module.cs -Destination .\module\custom\module.cs copy-item -Path .\find-armagedon.ps1 -Destination .\module\custom\find-armagedon.ps1
.\module\build-module.ps1 -Run
get-module
get-command -module jplneo
get-help
Invoke-CurrentNeoStatistics
(Invoke-BrowseNeoObject -Page 0 -Size 2).NearEarthObjects
find-armagedon