NGINX · Example Payload

Njs Request Example

API GatewayCachingCloud NativeLoad BalancerOpen SourceReverse ProxyWeb Server

Njs Request Example is an example object payload from NGINX, with 8 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

urlmethodheadersbodybodyUsedcachecredentialsmode

Example Payload

Raw ↑
{
  "url": "http://upstream.example.com/api/v1/data",
  "method": "POST",
  "headers": {
    "Content-Type": "application/json",
    "Authorization": "Bearer token123"
  },
  "body": "{\"action\":\"process\",\"id\":42}",
  "bodyUsed": false,
  "cache": "no-cache",
  "credentials": "same-origin",
  "mode": "cors"
}