PATCH
Introduction
Section titled “Introduction”Valve for performing HTTP PATCH requests.
Configuration
Section titled “Configuration”Common HTTP valve configuration can be found here.
| Name | Description | Default value | Mandatory |
|---|---|---|---|
content_type | Media type of content. | N/A |
{ "name" : "HttpPost", "config" : { "url" : "http://127.0.0.1:8080/echo", "destination" : "default", "parameters" : { "param_1_name" : "param_1_value", "param_2_name" : "param_2_value" }, "headers" : { "X-Timestamp" : "2022-08-30T12:05:46.607408Z" }, "content_type" : "application/x-www-form-urlencoded" }}Example for posting form data
Section titled “Example for posting form data”{ "name": "HttpPatch", "config": { "url": "https://demo1827626.mockable.io/tenant1/oauth2/v2.0/token", "destination": "default", "parameters": { "client_id": "myid", "scope": "https%3A%2F%2Ftest.tenant1%2F.default", "client_secret": "mysecret", "grant_type": "client_credentials" }, "content_type": "application/x-www-form-urlencoded" }}Example for posting JSON data
Section titled “Example for posting JSON data”{ "name": "HttpPatch", "config": { "url": "https://demo1827626.mockable.io/tenant1/customers/find", "destination": "default", "content": { "personalIdentityNumber": "${request.ssn}" }, "headers": { "Authorization": "Bearer ${state.body.access_token}" }, "content_type": "application/json" }}