liveBook · Manning

HTTP GET

As explained in Spring Start Here, Second Edition

GET is the HTTP method for requesting a representation of a resource without intending to change server-side state.

GET expresses a client’s intent to retrieve data from a server without changing server-side data. A request’s path identifies where it goes; its HTTP method identifies the requested action. section 8.2

Viewing products

A GET request to /products retrieves the product list for an HTML view. The same path can use POST to add a product: the path stays the same, while the method signals a different action. section 8.2

Table 8.2 Basic HTTP methods you’ll often encounter in web apps
HTTP method
Description
GET
The client’s request only retrieves data.
POST
The client’s request sends new data to be added by the server.
PUT
The client’s request changes a data record on the server side.
PATCH
The client’s request partially changes a data record on the server side.
DELETE
The client’s request deletes data on the server side.

Compare GET with other common methods for adding, changing, or deleting data. section 8.2

How Spring Start Here, Second Edition covers it

How deep it goes
Explains GET as retrieval-only and demonstrates a controller-to-view flow, without detailing HTTP protocol internals.
Examples
Uses GET /products to display a product list and contrasts it with adding a product through POST.
What you can do after
Apply it via Spring MVC to map a product-list request to a controller action and view.
How it connects
Connects GET with request paths, Spring MVC controller actions, and methods such as POST, PUT, PATCH, and DELETE.

Also explained in

Compare how 17 books explain HTTP GET →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Spring Start Here, Second Edition. The section links point to the parts of the book it draws on.