Join Justin Yost for an in-depth discussion in this video What is REST?, part of Consuming RESTful APIs in PHP with Guzzle.
- What is REST?…Rest stands for representational state transfer.…It is a stateless protocol…that relies on a client server…cacheable communication model to work.…This communication model is typically HTTP.…But really, what is REST?…Calling it a stateless protocol…that relies on a client server cacheable communication model…to work is, well, complicated to say the least.…Let's simplify this a little bit more.…REST is we use GET HTTP messages to get records.…
We then POST messages to post new records.…We use PUT and PATCH to edit existing records.…And we then use DELETE HTTP messages…to delete existing records.…In return, the server responds to us…with messages with HTTP codes…that tell us what the state of our request is.…So our working definition of REST…is sending HTTP verbed messages to a server,…which then responds with HTTP coded messages to the client.…
Notice, we didn't define that we have to use JSON or XML…or we have to use some fancy authentication mechanism…like Oauth.…We didn't define almost anything about the design of URLs…
- Installing Guzzle
- Sending basic requests
- Sending asynchronous requests
- Sending concurrent requests
- Sending query data
- Sending request data
- Advanced Guzzle request options
- Reviewing basic Guzzle responses
- Processing response headers
- Reviewing PSR-7 requests, responses, bodies, and headers
Skill Level Intermediate
Building APIs in PHP Using the Slim Micro Frameworkwith Keith Casey1h 52m Intermediate
PHP: Clean URLs on Apache Serverwith David Powers1h 36m Intermediate
PHP: Managing Persistent Sessionswith David Powers2h 41m Intermediate
1. Guzzle Basics
2. Requests with Guzzle
3. Responses with Guzzle
4. Guzzle and PSR-7
5. Testing and Guzzle
Next steps1m 12s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.