Is there a meta API for StackExchange? I don't mean an API for accessing meta sites, but rather an API to get information about the API itself. What I'm looking for is something that I can call that will return the JSON describing the various object types, along these lines:
{
"items" : [
{
"name" : "user",
"fields" : {
"user_id" : "integer",
"user_type" : [
"unregistered",
"registered",
"moderator",
"does_not_exist"
],
"creation_date" : "date",
"display_name" : "string",
...
},
},
...
]
}
I seem to recall there being something like this for the 1.x API, but I could be mis-remembering things.
My framework currently has a lot of code mapping api keys ("creation_date"
, "display_name"
, etc) to their language-normalized form ("creationDate"
, "displayName"
, etc), and I'm looking for more ways to cut out a lot of the related boilerplate code. My hope is that an API like this could mean that my data model could just adapt itself to pretty much anything mostly automatically.