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

Commit c8afb90

Browse files
author
Andrea Scuderi
committed
Add missing JSON on README.md
1 parent 62d8b3d commit c8afb90

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ allows you to return a 301 redirect to another URL or endpoint.
173173
let route: MockHTTPRoute = .redirect(urlPath: "/source", destination: "/destination")
174174
```
175175

176+
JSON
176177
```JSON
177178
{
178179
"type": "redirect",
@@ -205,6 +206,7 @@ let route = MockHTTPRoute = .template(
205206
)
206207
```
207208

209+
JSON
208210
```JSON
209211
{
210212
"type": "template",
@@ -233,7 +235,7 @@ let firstRoute: MockHTTPRoute = .simple(method: .get, urlPath: "/route1", code:
233235
let secondRoute: MockHTTPRoute = .simple(method: .get, urlPath: "/route2", code: 200, filename: "data2.json")
234236
let collectionRoute: MockHTTPRoute = .collection(routes: [ firstRoute, secondRoute ])
235237
```
236-
238+
JSON
237239
```JSON
238240
{
239241
"type": "collection",
@@ -269,7 +271,7 @@ let route: MockHTTPRoute = .timeout(method: .get, urlPath: "/timeouttest")
269271
```swift
270272
let route: MockHTTPRoute = .timeout(method: .get, urlPath: "/timeouttest", timeoutInSeconds: 5)
271273
```
272-
274+
JSON
273275
```JSON
274276
{
275277
"type": "timeout",

0 commit comments

Comments
 (0)