This differentiates Hello HTTP with other HTTP client softwares. Each Request contains one "Base Example" and zero or more Request Examples. Each example can contain different request body, query parameters, headers and pre-flight actions. They may inherit from the "Base Example" to share identical properties. All these examples of a Request share the same application protocol, HTTP method and path.
This allows testing different use cases and error cases against the same API.
By default, body with most of the content types (except "Multipart Form" and "Form URL-Encoded") is not inherited. The value in individual Request Example overrides the Base Example.
Body with content type "None" or "Binary File" cannot be inherited.
Body with remaining content types can be changed to inherit from the Base Example, by unselecting the "Is Override Base?" checkbox.
Variables can be defined in Request Example level to override Environment Variables. Variables defined in the Base Example are inherited and can be overridden.
Similar to Environment Variables, variables can be used anywhere in the request with the syntax ${{variable-name}}
.
Overridden variables are displayed in a dimmed color.
By default, following items are inherited from the "Base Example" of the same Request.
They will be displayed under the "Inherited" section.
Among these items, individual inheritance can be disabled by unselecting the checkbox.
Just double-click the Request Example, make changes and hit enter.
Click the duplicate button next to the name of the Example, and then give a name to the new one.
Request Examples can be navigated by scrolling the Example tabs in horizontal direction, vertical direction or clicking the "List" button next to the "Add Request Example" button.
For WebSocket and gRPC calls that support client streaming, each request contains one or more Payload Example to allow multiple message templates. Different from Request Examples, Payload Examples have no inheritance.
Powered by Doctave