<div dir="ltr"><div>Hey there,</div><div><br></div><div>We have an application which has a wizard for doing a fairly complex task (imagine something like a tax form with lots of conditional sections). We want to create an api to do the same task. We have two approaches under consideration at the moment</div><div><br></div><div>1) Mimic the wizard via a POST and a series of PATCH calls</div><div>2) Flatten the wizard into a single POST call</div><div><br></div><div>The first approach would require around 6 calls to complete the task</div><div><br></div><div>The second call would have to fill in 50-60 pieces of data with alot of different validations and errors. Errors like "You cannot fill in field b if you have filled in field a" <br></div><div><br></div><div>My questions for the group?</div><div><br></div><div>Which choice would you make?</div><div>Are there alternative approaches to consider</div><div><br></div><div>Thanks for any input/help</div><div><br></div><div>All best</div><div><br></div><div>Andrew<br></div><div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div>------------------------</div>Andrew Premdas<div><a href="http://blog.andrew.premdas.org" target="_blank">blog.andrew.premdas.org</a></div></div></div></div>