Skip to content

Commit

Permalink
DOC: Update examples to be more user friendly.
Browse files Browse the repository at this point in the history
This fixes 3scale#1069 issue where Backend API was set as google.com and
yahoo.com due to in markdown files the urls need to be real.

Encoded the urls as code, and create some user-friendly api backend.

Signed-off-by: Eloy Coto <[email protected]>
  • Loading branch information
eloycoto committed Jun 18, 2019
1 parent e662ac6 commit ea7e35f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions doc/parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,13 @@ Note: If a service does not match, but is included in the
`APICAST_SERVICES_LIST`, service will not be discarded

Example:

Regexp Filter: http:\/\/.*.google.com
Service 1: backend endpoint http://www.google.com
Service 2: backend endpoint http://www.yahoo.com
Service 3: backend endpoint http://mail.google.com
Service 4: backend endpoint http://mail.yahoo.com
```
Regexp Filter: http:\/\/.*.foo.dev
Service 1: backend endpoint http://staging.foo.dev
Service 2: backend endpoint http://staging.bar.dev
Service 3: backend endpoint http://prod.foo.dev
Service 4: backend endpoint http://prod.bar.dev
```

The services that will be configured in Apicast will be 1 and 3. Services 2 and
4 will be discarded.
Expand Down

0 comments on commit ea7e35f

Please sign in to comment.