Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Add missing JSON on README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Scuderi committed Sep 16, 2022
1 parent 62d8b3d commit c8afb90
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ allows you to return a 301 redirect to another URL or endpoint.
let route: MockHTTPRoute = .redirect(urlPath: "/source", destination: "/destination")
```

JSON
```JSON
{
"type": "redirect",
Expand Down Expand Up @@ -205,6 +206,7 @@ let route = MockHTTPRoute = .template(
)
```

JSON
```JSON
{
"type": "template",
Expand Down Expand Up @@ -233,7 +235,7 @@ let firstRoute: MockHTTPRoute = .simple(method: .get, urlPath: "/route1", code:
let secondRoute: MockHTTPRoute = .simple(method: .get, urlPath: "/route2", code: 200, filename: "data2.json")
let collectionRoute: MockHTTPRoute = .collection(routes: [ firstRoute, secondRoute ])
```

JSON
```JSON
{
"type": "collection",
Expand Down Expand Up @@ -269,7 +271,7 @@ let route: MockHTTPRoute = .timeout(method: .get, urlPath: "/timeouttest")
```swift
let route: MockHTTPRoute = .timeout(method: .get, urlPath: "/timeouttest", timeoutInSeconds: 5)
```

JSON
```JSON
{
"type": "timeout",
Expand Down

0 comments on commit c8afb90

Please sign in to comment.