Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0613· openaiHugging Face Suzhen/CodeChat

wiremock withrequestbody example for /openapi/v1/common/batchExecute нужно вот с таким…

  1. User

    wiremock withrequestbody example for /openapi/v1/common/batchExecute нужно вот с таким RequestBody: { “cashMoney”: { “crable3”: 99, “crable2”: 66, “crable1”: 33 }, “surname”: null } только вместо чисел любые (через регулярные выражения)

  2. Assistant

    Below is an example of a WireMock stub with a regular expression for the batchExecute endpoint's request body:

    {
      "request": {
        "method": "POST",
        "url": "/openapi/v1/common/batchExecute",
        "bodyPatterns" : [{
          "matchesJsonPath" : "$.cashMoney"
        }, {
          "matchesJsonPath" : "$.surname"
        }]
      },
      "response": {
        "status": 200,
        "body": ""
      }
    }
    

    This WireMock stub will match any request to the /openapi/v1/common/batchExecute endpoint with a JSON body containing a cashMoney key and a surname key, regardless of the values.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.