Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to define arbitrary key/value pairs as properties in a template? #85

Open
Ickbinet opened this issue Oct 23, 2021 · 5 comments
Open

Comments

@Ickbinet
Copy link

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,...
@mamund
Copy link
Owner

mamund commented Oct 25, 2021

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.

@Ickbinet
Copy link
Author

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?

@mamund
Copy link
Owner

mamund commented Oct 25, 2021 via email

@Ickbinet
Copy link
Author

What is the best place to discuss it? Here? https://groups.google.com/g/hal-discuss

@mamund
Copy link
Owner

mamund commented Oct 25, 2021

yep. lots of stamrt folks there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants