Skip to content

Examples

Example 1: GET Request with Query Parameters

Request:

URL: https://api.example.com/v1/users
Query Parameters: {page: "2", limit: "10", sort: "name"}
Body: (empty)

Signature String:

https://api.example.com/v1/users&limit=10&page=2&sort=name

Example 2: POST Request with JSON Body

Request:

URL: https://api.example.com/v1/orders
Query Parameters: (empty)
Body: {"userId": 123, "productId": 456, "quantity": 2}

Signature String:

https://api.example.com/v1/orders&{"userId":123,"productId":456,"quantity":2}

Example 3: PUT Request with Both Query Parameters and Body

Request:

URL: https://api.example.com/v1/products
Query Parameters: {version: "v2", format: "json"}
Body: {"name": "Product A", "price": 99.99}

Signature String:

https://api.example.com/v1/products&format=json&version=v2&{"name":"Product A","price":99.99}