From c8afb90047027a643ef3ba2ed173f318a6059d70 Mon Sep 17 00:00:00 2001 From: Andrea Scuderi Date: Fri, 16 Sep 2022 15:44:31 +0100 Subject: [PATCH] Add missing JSON on README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c3e2d45..7210a0c 100644 --- a/README.md +++ b/README.md @@ -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", @@ -205,6 +206,7 @@ let route = MockHTTPRoute = .template( ) ``` +JSON ```JSON { "type": "template", @@ -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", @@ -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",