The value identifies the resource being acted on — it’s part of the URL structure
Request body
Sending data to create or update a resource, or when there are multiple fields to pass
Query param
Filtering, searching, or passing optional modifiers
Examples
# Path param — the set being deleted/fetched
DELETE /sets/{set_code}
GET /sets/{set_id}
# Request body — payload describing the new set / fields to update
POST /sets
PUT /sets/{id}
# Query param — optional filter
GET /sets/name?code=abc
See also
gin-query-binding — binding query params and request bodies in Go/Gin