Request Template Patterns

Turn one successful observed request into a reusable template.

Template Shape

A practical template usually needs:

For pagination-capable reads, also define:

Extraction Strategy

  1. Capture one successful request.
  2. Remove values that should not be hard-coded forever.
  3. Keep only the minimal stable request shape.
  4. Replace changeable values with adapter-level variables.

Typical variable fields:

Execution Pattern

Inside the adapter, execute the request from the page context:

Fallback Pattern

When there is no captured template yet, or the request fails after an upstream site change:

Cache Scope

Template caching should be explicit.

Reasonable cache scopes:

Refresh the template when: