I am working with the MAshery API to pull various member and API key information. I have to use trial and error to figure out the exact schema of the json responses that are returned for a given call. It would be great if we could get:
1. Complete list of all object types with fields
2. Schema definitions for each type of API call (i.e., SELECT * FROM MEMBERS)
You don't need to resort to trail and error. There is an introspection ability built into the api itself. To get a list of available objects, please see the object.list api call.
I am working with the MAshery API to pull various member and API key information. I have to use trial and error to figure out the exact schema of the json responses that are returned for a given call. It would be great if we could get:
1. Complete list of all object types with fields
2. Schema definitions for each type of API call (i.e., SELECT * FROM MEMBERS)
Message edited by Kevin Kohut 2 years ago
Mashery Jeff – 2 years ago
Hi Keven,
You don't need to resort to trail and error. There is an introspection ability built into the api itself. To get a list of available objects, please see the object.list api call.
http://support.mashery.com/docs/read/mashery_api/object/list
This currently returns: "application","member","key","role","service","developer_class","service_class".
You can also call the object.describe method to receive a description of which fields are available for any given object.
http://support.mashery.com/docs/read/mashery_api/object/describe
I hope this helps.
Jeff Moore