<div dir="ltr">Mais links para ler:<div><br></div><div>REST APIs must be hypertext-driven<br><div> - <a href="http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven">http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven</a> (too strict)<br></div><div><br></div><div>Creating an efficient REST API with HTTP<br></div><div> - <a href="http://mark-kirby.co.uk/2013/creating-a-true-rest-api/">http://mark-kirby.co.uk/2013/creating-a-true-rest-api/</a> (cool)<br></div><div><br></div><div><br></div><div>No começo desta thread eu não conhecia esse tal REST do Dr Fielding. Foi legal conhecer, mas ainda não entendo porque o Leonardo diz que os REST-likes não ajudam sistemas mobiles/SPA. </div><div><br></div><div>Nem todo mundo que conheço gostam de AngularJS, algumas, inclusive, tem um forte ódio (quase como o Eden vs Mojolicious). </div><div><br></div><div>É claro que uma SPA ficaria mais fácil de dar manutenção se as respostas à recursos da API contenham as URI's para os próximos recursos, mas não impossibilita a SPA de existir de uma forma regular.</div><div><br></div><div>A unica parte que não entendi até agora foi essa:</div><div><ul style="margin:1em;padding:0px;color:rgb(0,0,0);font-family:Georgia,Verdana,Arial,serif;font-size:medium"><li style="padding:0.5em">A REST API should not be dependent on any single communication protocol, though its successful mapping to a given protocol may be dependent on the availability of metadata, choice of methods, etc. In general, any protocol element that uses a URI for identification must allow any URI scheme to be used for the sake of that identification. <em>[Failure here implies that identification is not separated from interaction.]</em></li></ul></div><div>Como fazer uma API comunicável por diversos protocolos? HTTP e HTTPS não bastam? Os outros protocolos não podem ser "tunelados" por HTTP?</div><div><br></div><div><br></div><div class="gmail_extra"><br clear="all"><div><br></div>-- <br><div><div><span style="color:rgb(51,51,51);font-size:x-small">Saravá,</span></div><div><span style="color:rgb(51,51,51);font-size:x-small">Renato CRON</span></div><div><div style="text-align:right"><font size="1" color="#333333"><a href="http://www.renatocron.com/blog/" target="_blank">http://www.renatocron.com/blog/</a></font></div></div><div style="text-align:right"><font size="1" color="#333333"><a href="http://twitter.com/#!/renato_cron" target="_blank">@renato_cron</a></font></div></div>
</div></div></div>