diff --git a/src/manual/connector-openapi.adoc b/src/manual/connector-openapi.adoc index b89f3889c2..c0e24a1c8a 100644 --- a/src/manual/connector-openapi.adoc +++ b/src/manual/connector-openapi.adoc @@ -130,6 +130,9 @@ private final OpenApiSpecification petstoreSpec = OpenApiSpecification.from( @CitrusTest public void openApiClientTest() { + // Define variables to set request parameters. + // Note that the path-param in `petstore-v3.yaml` is named `petId` + variable("petId", "1001"); when(openapi(petstoreSpec) .client(httpClient) .send("getPetById")); @@ -146,6 +149,9 @@ public void openApiClientTest() { + + @@ -241,6 +247,9 @@ private final OpenApiSpecification petstoreSpec = OpenApiSpecification.from( @CitrusTest public void openApiClientTest() { + // Define variables to set request parameters. + // Note that the path-param in `petstore-v3.yaml` is named `petId` + variable("petId", "1001"); when(openapi(petstoreSpec) .server(httpServer) .receive("addPet")); @@ -257,6 +266,9 @@ public void openApiClientTest() { + +