Closed gregturn closed 9 years ago
@mikekelly I have written a working solution to plugin a custom non-GET dialog. You can view it at https://github.com/gregturn/hal-browser/commits/use-alps. There is just one commit at the time of this comment to skim over.
What do you think?
Thanks for this. Sounds and looks reasonable at first glance. Please could you strip out custom.js
and raise a PR?
Also, please could you add some docs for this feature to the README?
Sure thing.
awesome, thanks
Thanks to this patch, I have now plugged in a nice customization. Thanks!
http://docs.spring.io/spring-data/rest/docs/2.4.0.RC1/reference/html/#_the_hal_browser
Awesome! Good stuff
@mikekelly Spring Data REST is using this project (via webjars) as a plugin, so anybody that builds a HAL-based service can easily serve up a HAL Browser front end with next to no effort.
A bonus feature Spring Data REST comes with is ALPS metadata which includes the properties for every resource. A feature I have wanted to add for some time is to use this metadata and make the HAL Browser's POST form more sophisticated by listing each property by name with separate fields, instead of a raw body field where the user must type in all the fields in JSON, and include the right names.
I am tinkering with a fork of the app to craft some extension point where someone could drop in extra JavaScript to fetch this extra metadata, but I'm finding it tricky to do so. I didn't know if you were interested in working on such an extension point for this project, or if you are too busy with other projects.
/cc @olivergierke