Browse Source

more slides

master
Julio Biason 11 years ago
parent
commit
a7ac54f71b
  1. 45
      rest-reveal/index.html

45
rest-reveal/index.html

@ -121,20 +121,37 @@ img {
</section> </section>
<section> <section>
Em ReST, métodos HTTP viram CRUD: <p>
Em ReST, métodos HTTP viram CRUD:
<table> </p>
<thead>
<tr><th>Operação</th><th>Método</th></tr> <ul>
</thead> <li>Create &#8658; POST</li>
<li>Retrieve &#8658; GET</li>
<tbody> <li>Update &#8658; PUT</li>
<tr><td>Create</td><td>POST</td></tr> <li>Delete &#8658; DELETE</li>
<tr><td>Retrieve</td><td>GET</td></tr> <li class='fragment'>Update &#8658; PATCH</li>
<tr><td>Update</td><td>PUT</td></tr> </ul>
<tr><td>Delete</td><td>DELETE</td></tr> </section>
</tbody> </section>
</table>
<section>
<section>
<h2>Recursos</h2>
<img src='../_images/jellybeans.jpg'></img>
</section>
<section>
<ul>
<li>Em ReST, as "tabelas" são chamadas "recursos".</li>
<li>Sempre substantivos no plural.</li>
<li>Duas URLs por recurso
<ul>
<li>Uma para o conjunto;</li>
<li>Uma para elementos específicos.</li>
</ul>
</li>
</ul>
</section> </section>
</section> </section>
</div> </div>

Loading…
Cancel
Save