In this course, I learn how to develop and implement REST services, including GET, POST, DELETE, and PUT, as well as how to implement authentication and error handling.
- Learn to consume REST services
- Produce REST services
- Restrict acces to REST APIs
-
Class 5: How to make a REST request and interpret its results
- xkcd.php
-
Class 6: Expose data through HTTP GET
- server.php
-
Class 7: Expose a particular resource via HTTP GET
- router.php
-
Class 8: Embed data via HTTP POST
- server.php
-
Class 9: Modify data via HTTP PUT
- server.php
-
Class 10: Delete data via HTTP DELETE
- server.php
-
Class 11: Authentication via HTTP
- server.php
-
Class 12: Authentication via HMAC
- to use this authentication you must sent the UID, TIMESTAMP and HASH
- run generate_hash to obtain the TIMESTAMP and HASH
- then use the next command -> curl [url] -H 'X-UID: #' -H 'X-TIMESTAMP: #' -H 'X-HASH: #'
-
Class 13: Authentication via Access Tokens
- run the authentication server on port 8001 and the API server on port 8000
- then ask for the token using -> curl http://localhost:8001 -X 'GET' -H 'Client-Id: 1' -H 'X-Secret: SuperSecreto!'
- make the request to the server using the given token -> curl http://localhost:8000 -H 'X-Token: ####'
-
Class 14: REST service error handling
- run the API server
- ask for a resource to simulate a client -> php client.php http://localhost:8000/books/[resource number]
-
Class 15, 16: AJAX
- class 15 - Building the html structure to work with ajax
- class 16 - Creating a request via Ajax (GET)
-
Class : ...
- ...
We are not here yet!!