Rules

UseWhen
Path paramThe value identifies the resource being acted on — it’s part of the URL structure
Request bodySending data to create or update a resource, or when there are multiple fields to pass
Query paramFiltering, 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