Browse Source

improve readme

Maurits van der Schee 3 years ago
parent
commit
97d704f7a5
1 changed files with 12 additions and 2 deletions
  1. 12
    2
      README.md

+ 12
- 2
README.md View File

@@ -1068,7 +1068,12 @@ You may use the "xml" middleware to translate input and output from JSON to XML.
1068 1068
 
1069 1069
 Outputs:
1070 1070
 
1071
-    {"id":1,"user_id":1,"category_id":1,"content":"blog started"}
1071
+    {
1072
+        "id": 1,
1073
+        "user_id": 1,
1074
+        "category_id": 1,
1075
+        "content": "blog started"
1076
+    }
1072 1077
 
1073 1078
 While (note the "format" query parameter):
1074 1079
 
@@ -1076,7 +1081,12 @@ While (note the "format" query parameter):
1076 1081
 
1077 1082
 Outputs:
1078 1083
 
1079
-    <root><id>1</id><user_id>1</user_id><category_id>1</category_id><content>blog started</content></root>
1084
+    <root>
1085
+        <id>1</id>
1086
+        <user_id>1</user_id>
1087
+        <category_id>1</category_id>
1088
+        <content>blog started</content>
1089
+    </root>
1080 1090
 
1081 1091
 This functionality is disabled by default and must be enabled using the "middlewares" configuration setting.
1082 1092
 

Loading…
Cancel
Save