Primero entiende que es REST y como trabaja sin tener en cuenta PHP y la lógica de la app.
http://restcookbook.com/
--
Alvaro Lizama
http://alvarolizama.net
El jueves, 5 de septiembre de 2013 a las 11:09, Analyzer escribió:
> El enlace menciona varias cosas para eso de la API REST:
>
>
http://www.9lessons.info/2012/05/create-restful-services-api-in-php.html
>
> 1. Database
> Sample database users table columns user_id, user_fullname, user_email, user_password and user_status.
>
> 2. Rest API Class: api.php
> Contains simple PHP code, here you have to modify database configuration details like database name, username and password.
>
> 3. Login POST
> Displaying users records from the users table Rest API URL
http://localhost/rest/login/. This Restful API login status works with status codes if status code 200 login success else status code 204 shows fail message. For more status code information check Rest.inc.php in download script.
>
> 4. Users GET
> Displaying users records from the users table Rest API URLhttp://localhost/rest/users/
>
> 5. DeleteUser
> Delete user function based on the user_id value deleting the particular record from the users table Rest API URL
http://localhost/rest/deleteUser/
>
> 6. Chrome Extention
> A Extention for testing PHP restful API response download here Advanced REST client Application (
https://chrome.google.com/webstore/detail/hgmloofddffdnphfgcellkdfbfbjeloo)
>
> 7. .htaccess code
> Rewriting code for friendly URLs. In the download code you just modifyhtaccess.txt to .htaccess
>
>
> ¿Alguna idea de todos estos puntos?..
>
> Me pierdo en comprender los puntos 3, 4 y 7.
>
> Saludos!
>
> --
> Has recibido este mensaje porque estás suscrito al grupo "PHP Latinoamérica" de Grupos de Google.
> Visita este grupo en
http://groups.google.com/group/phplatinoamerica.