How to define arbitrary key/value pairs as properties in a template?
Is it possible to define properties which accept arbitrary key/value pairs? For example when the server accepts a Map as request body.
Like properties: * or so...
POST /foo
key1=value1&key2=value2,...
no formal structure right now.
FWIW, when i need this kind of input, i just send the API consumer instructions to send a POST using application/x-www-form-urlencoded name/value pairs. for human UI, this might be prompted using JS or might be just a TEXTAREA box.
if you have some other ideas, happy to discuss.
Thank you for the response.
"just send the API consumer instructions "
How to? There is no template property like "info/hints" etc. Atm only a curie with a doc link could help, but this requires an extra document.
Maybe a property type Form could help?
"just send instructions" === documentation
again, if you'd like to propose something to add to HAL-FORMS to solve this problem, happy to discuss.
What is the best place to discuss it? Here? https://groups.google.com/g/hal-discuss
yep. lots of stamrt folks there.