example: post_with_query

This commit is contained in:
Stef Heyenrath
2020-03-22 12:04:26 +01:00
parent 8c1cd41df9
commit 5f274f1179

View File

@@ -493,6 +493,16 @@ namespace WireMock.Net.ConsoleApplication
.WithBody("<xml>ok</xml>")
);
server
.Given(Request.Create()
.UsingPost()
.WithPath("/post_with_query")
.WithParam("name", "stef")
)
.RespondWith(Response.Create()
.WithBody("OK : post_with_query")
);
server.Given(Request.Create()
.WithPath("/services/query/")
.WithParam("q", "SELECT Id from User where username='user@gmail.com'")