
Barry Warsaw writes:
On Mar 29, 2017, at 02:07 PM, Stephen J. Turnbull wrote:
Would it be possible to automate this? I haven't thought carefully about it, specifically security issues. However, there could (in theory) be an automated export of "all parameters" in "expert mode" or "site/list initialization mode".
It's probably near impossible to automate, because the Core's REST API isn't programmatically discoverable.
Right (I did know that). I was thinking "decorator".
As a counter-example, Launchpqad's REST API provides a WADL[1] description extracted from the code, but this makes it way too heavyweight for my tastes.
You have good taste, I'll grant that. ;-)
And because the Core uses a dynamic object-based traversal system (inherited from restish and ported to falcon) it would make any kind of static REST API description pretty difficult to generate.
OK.
Would you recommend against even exploring for a lightweight approach for some reason? Ie, the idea is bad according to some principle?