The most common HTTP method you will use for reading data is the GET method. The HEAD method is also used for reading data. They are very similar to each other but each has their own use cases, which you will learn in this video.
- [Instructor] The GET and HEAD methods are two of…the most commonly used methods.…I say this because your web browser sends a server…a GET request whenever you try to visit…the website that it hosts.…These methods are typically considered…what are called safe methods…and this is because, according to their definitions,…they should not change the state of any data…and are only used to read information.…Of course, this all depends on…how the development team implemented it…for their RESTful API.…
I have come acrossed many cases…in which a GET method is used to change data in some way.…So you should approach every API without any assumptions…and go by its documentation.…The primary difference between these two methods is that…the GET method returns a message body if there is one…and the HEAD method tells the server…that we only care about the content of…the headers in the response and to not send the body at all.…This can be useful if there is information in the headers…that you want to be able to read quickly…to get an idea of what is in the message body…
- REST API basics
- Methods for reading and writing data
- Defining data models with Retrofit
- Implementing an API interface
- Getting data with a Retrofit call
- Authorizing requests
- Putting, deleting, and posting data
- Customizing the data converter
- Working with the request and response headers
Skill Level Intermediate
Android App Development: Enterprise Integrationwith Jon-Luke West47m 51s Intermediate
Android App Development: Data Persistence Librarieswith Annyce Davis4h 52m Intermediate
1. HTTP APIs
2. Get Started with Retrofit
3. Finish the Sample App
4. More Configuration Options
- 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.