mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-23 00:38:28 +02:00
Updated Request Matching (markdown)
@@ -299,28 +299,29 @@ server
|
|||||||
#### JSON Mapping option
|
#### JSON Mapping option
|
||||||
``` json
|
``` json
|
||||||
{
|
{
|
||||||
"Guid": "5a36d1c1-11df-4976-90f9-22cae5dadb38",
|
"Guid": "5a36d1c1-11df-4976-90f9-22cae5dadb38",
|
||||||
"UpdatedAt": "2023-07-08T17:02:06.1072879Z",
|
"UpdatedAt": "2023-07-08T17:02:06.1072879Z",
|
||||||
"Request": {
|
"Request": {
|
||||||
"Path": {
|
"Path": {
|
||||||
"Matchers": [
|
"Matchers": [
|
||||||
{
|
{
|
||||||
"Name": "WildcardMatcher",
|
"Name": "WildcardMatcher",
|
||||||
"Pattern": "/graphql",
|
"Pattern": "/graphql",
|
||||||
"IgnoreCase": false
|
"IgnoreCase": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"Methods": [
|
"Methods": [
|
||||||
"POST"
|
"POST"
|
||||||
],
|
],
|
||||||
"Body": {
|
"Body": {
|
||||||
"Matcher": {
|
"Matcher": {
|
||||||
"Name": "GraphQLMatcher",
|
"Name": "GraphQLMatcher",
|
||||||
"Pattern": "\r\n input MessageInput {\r\n content: String\r\n author: String\r\n }\r\n\r\n type Message {\r\n id: ID!\r\n content: String\r\n author: String\r\n }\r\n\r\n type Mutation {\r\n createMessage(input: MessageInput): Message\r\n updateMessage(id: ID!, input: MessageInput): Message\r\n }\r\n\r\n type Query {\r\n greeting:String\r\n students:[Student]\r\n studentById(id:ID!):Student\r\n }\r\n\r\n type Student {\r\n id:ID!\r\n firstName:String\r\n lastName:String\r\n fullName:String \r\n }"
|
"Pattern": "\r\n input MessageInput {\r\n content: String\r\n author: String\r\n }\r\n\r\n type Message {\r\n id: ID!\r\n content: String\r\n author: String\r\n }\r\n\r\n type Mutation {\r\n createMessage(input: MessageInput): Message\r\n updateMessage(id: ID!, input: MessageInput): Message\r\n }\r\n\r\n type Query {\r\n greeting:String\r\n students:[Student]\r\n studentById(id:ID!):Student\r\n }\r\n\r\n type Student {\r\n id:ID!\r\n firstName:String\r\n lastName:String\r\n fullName:String \r\n }"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## CSharp Code (CSharpCodeMatcher)
|
## CSharp Code (CSharpCodeMatcher)
|
||||||
|
|||||||
Reference in New Issue
Block a user