UpdateMockServerResponse
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| serverResponse | UpdateMockServerResponseServerResponse | ❌ |
UpdateMockServerResponseServerResponse
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | ❌ | The server response's name. |
| statusCode | number | ❌ | The server response's 5xx HTTP response code. This property only accepts 5xx values. |
| headers | ServerResponseHeaders2[] | ❌ | The server response's request headers, such as Content-Type, Accept, encoding, and other information. |
| language | ServerResponseLanguage2 | ❌ | The server response's body language type. |
| body | string | ❌ | The server response's body that returns when calling the mock server. |
ServerResponseHeaders2
Information about they key-value pair.
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| key | string | ❌ | The request header's key value. |
| value | string | ❌ | The request header's value. |
ServerResponseLanguage2
The server response's body language type.
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| TEXT | string | ✅ | "text" |
| JAVASCRIPT | string | ✅ | "javascript" |
| JSON | string | ✅ | "json" |
| HTML | string | ✅ | "html" |
| XML | string | ✅ | "xml" |
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs