January 2019
Intermediate to advanced
490 pages
15h 37m
English
Consider a URL: http://www.heartin.tech/books/serverless-cookbook?format=pdf#index. Here, http is the scheme, www.heartin.tech is the host, books and serverless-cookbook are resources, format=pdf is a query string, and #index is a fragment. You can specify a variable path param as books/{book}, and substitute a value for {book} when making requests. Path parameters should be preferred over query strings for specifying resources. Query strings are generally used for filtering results with GET requests (for example, pagination and sorting). The #index part is called a fragment, and it points to a location within an HTML file, but is less frequently used with REST.
Read now
Unlock full access