GET retrieves a resource from a server. Browsers use it when you enter a URL or follow a link, and an application can map a GET request to an endpoint that returns a response. section 3.6 section 5.2.2
A minimal GET endpoint
app.MapGet("/", () => "Hello World!"); This endpoint responds with plain text when a client sends a GET request to the root path. The server begins listening after app.Run(). section 3.6
Use GET for retrieval and keep state-changing operations on methods with different semantics:
- Fetch data only; do not use GET to send data or modify server state. section 5.2.2
- Use POST to create or send data, PUT to create or replace, PATCH to modify, and DELETE to remove a resource. section 5.2.2













