provideParameters() {
"call-http-query-parameters-external-schema.yaml", starTrekInput, starTrekCondition),
Arguments.of(
"callPostHttp.yaml",
- Map.of("name", "Javierito", "status", "available"),
+ Map.of("name", "Javierito", "surname", "Unknown"),
new Condition<>(o -> o.equals("Javierito"), "CallHttpPostCondition")));
}
}
diff --git a/impl/http/src/test/resources/callPostHttp.yaml b/impl/http/src/test/resources/callPostHttp.yaml
index d66dcfaa..f12fec42 100644
--- a/impl/http/src/test/resources/callPostHttp.yaml
+++ b/impl/http/src/test/resources/callPostHttp.yaml
@@ -9,20 +9,9 @@ do:
with:
method: post
endpoint:
- uri: https://petstore.swagger.io/v2/pet
+ uri: https://fakerestapi.azurewebsites.net/api/v1/Authors
body:
- name: ${.name}
- status: ${.status}
+ firstName: ${.name}
+ lastName: ${.surname }
output:
- as: .id
- - getPet:
- call: http
- with:
- method: get
- endpoint:
- uri: https://petstore.swagger.io/v2/pet/{petId}
- input:
- from:
- petId: ${.}
- output:
- as: .name
\ No newline at end of file
+ as: .firstName
\ No newline at end of file
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy