Skip to content

Given a Google API discovery document and an object name, generates a JSON that follows the object description

Notifications You must be signed in to change notification settings

ezequielpereira/Google-API-object-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Google API object generator

Given a Google API discovery document and an object name, generates a JSON that follows the object description

Usage

./genObject.py <discovery document> <object name>

Example

wget -O discovery.json 'https://iam.googleapis.com/$discovery/rest'
./genObject.py discovery.json ServiceAccount > serviceAccount.json

Notes

  • "Oneof" properties cannot be recognized by the script, they need to be removed from the result by hand

About

Given a Google API discovery document and an object name, generates a JSON that follows the object description

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages