Open dandv opened 9 years ago
This is something I would definitely be interested in supporting in Restivus (as well as simple:rest, via middleware). I'll look into it within the next few days and continue the discussion here. I'm no expert on FormData
, so I just need some time to get an idea of what it would take to support this in Restivus. If you have any suggestions, I'm always happy to hear them. Thanks for the really great suggestion! This will be a nice feature to add.
Hi is it a way now to support FormData from a request to an endpoint ?
Until HTML JSON forms become standard, submitting form data via JSON payloads to a REST API is non-trivial.
With FormData support, sending a form to the endpoint from vanilla JavaScript would be as simple as:
Does this make sense and would it be within the scope of Restivus?