08-07-2017 12:12 AM
Lately I discovered that there is a enhanced version of the WAPI schema available.
I always found the idea interessting to make use of the &_schema for input validation and and more. It might be even possible for WAPI clients to write generic methods with no knowledge of the business objects. The client would need therefore a "data schema" or contract like WDSL in the old days. As Infoblox seems to put some more effort into that schema topic I would like to understand the idea behind.
Does anyone use the _schema today? How? Is there any python parser for its consumption?
Any input appriciated.
08-08-2017 06:38 AM
I personally only use the schema to check what I can use for WAPI calls, which, of course you can just look at the WAPI documentation for that information but sometimes it’s faster just to add the _schema=1
Also the body return of the WAPI call is in json or if you make a _return_type call then you can also get the body returned in json-pretty, xml, xml-pretty. –pretty. Python has a few different options I believe to parse json… all of which should work. Same with the other return types that can be returned.
Hope this helps,