From 04f4c2fd13f48416d7f557b6ba2eb96652e24c71 Mon Sep 17 00:00:00 2001 From: Sterchi Daniel Date: Wed, 5 Jun 2024 08:56:46 +0200 Subject: [PATCH] chore: improve OpenApi example --- src/manual/connector-openapi.adoc | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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() { + +