Fixes broken example JSON.

pull/1764/head
James Phillips 2016-03-04 11:15:10 -08:00
parent eb7004f2b8
commit aa8cd2619d
1 changed files with 6 additions and 6 deletions

View File

@ -175,18 +175,18 @@ to static templates, except with some additional fields and features. Here's an
```javascript ```javascript
{ {
"Name": "geo-db", "Name": "geo-db",
"Template" { "Template": {
"Type": "name_prefix_match", "Type": "name_prefix_match",
"Regexp": "^geo-db-(.*?)-([^\-]+?)$" "Regexp": "^geo-db-(.*?)-([^\\-]+?)$"
}, },
"Service": { "Service": {
"Service": "mysql-${regexp.match(1)}", "Service": "mysql-${match(1)}",
"Failover": { "Failover": {
"NearestN": 3, "NearestN": 3,
"Datacenters": ["dc1", "dc2"] "Datacenters": ["dc1", "dc2"]
}, },
"OnlyPassing": true, "OnlyPassing": true,
"Tags": ["${regexp.match(2)}"] "Tags": ["${match(2)}"]
} }
} }
``` ```
@ -466,9 +466,9 @@ a JSON body will be returned like this:
"Session": "adf4238a-882b-9ddc-4a9d-5b6758e4159e", "Session": "adf4238a-882b-9ddc-4a9d-5b6758e4159e",
"Token": "<hidden>", "Token": "<hidden>",
"Name": "geo-db", "Name": "geo-db",
"Template" { "Template": {
"Type": "name_prefix_match", "Type": "name_prefix_match",
"Regexp": "^geo-db-(.*?)-([^\-]+?)$" "Regexp": "^geo-db-(.*?)-([^\\-]+?)$"
}, },
"Service": { "Service": {
"Service": "mysql-customer", "Service": "mysql-customer",