4 ms·
I love the idea of this being standardized and am immediately thinking that a generic browser of application/hal+json resources would be a great developer tool.
by smoyer 14y ago
I love the idea of this being standardized and am immediately thinking that a generic browser of application/hal+json resources would be a great developer tool.
I tend to agree with the idea that self should be top-level, but the other thing I'd like to have in the specification is versioning for both the specification itself and the API. How about something like:
{
...
"_version": {
"hal": <some HAL version string>,
"api": <some API version string>
},
...
}
Thanks for the thought you've obviously put into this ... we'll all benefit eventually!
- AffableSpatula 14y ago:) already working on a browser: https://github.com/mikekelly/hal-browser https://github.com/mikekelly/hal-browser very rough demo here: http://hal-shop.heroku.com/hal_browser.html http://hal-shop.heroku.com/hal_browser.html
- smoyer 14y agoLooks a lot like what I "saw in my head". Some code to get around SOP would let you point it at anyone's API ... a great way to learn an API is to see it with real data and you'd be able to navigate around the resources at will.