jsonary-js / jsonary

Quickly assemble clients for JSON-based APIs (powered by JSON Schema)
http://jsonary.com/
MIT License
122 stars 14 forks source link

Editing with an rel=edit and/or method=PUT should prefill the form with current model values #141

Open yohcop opened 10 years ago

yohcop commented 10 years ago

It would be nice if when I clicked on an edit link (defined with rel=edit or method=PUT), if the current object values would be pre-filled.

For example, let's assume I have user with name and age, and I only have a PUT method to edit it (in other words, no PATCH method for partial updates). That means that all the user info defined in the schema need to be sent to the server on every PUT request. If I only want to update the age field, I'd rather not type the name again.

Thanks!

geraintluff commented 10 years ago

You're right, that should happen. I thought that was already in there, so I'll take a look...