You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README-English.md
+34-29
Original file line number
Diff line number
Diff line change
@@ -75,19 +75,22 @@ With APIJSON, client developers will no longer be suffered from possible errors
75
75
Server developers no longer need to worry about compatibility of APIs and documents with legacy apps.
76
76
77
77
### Examples:
78
+
78
79
#### Get a User
79
80
Request:
80
-
<pre><codeclass="language-json">
81
+
82
+
```json
81
83
{
82
84
"User":{
83
85
}
84
86
}
85
-
</code></pre>
87
+
```
86
88
87
89
[Click here to test](http://apijson.cn:8080/get/{"User":{}})
88
90
89
91
Response:
90
-
<pre><codeclass="language-json">
92
+
93
+
```json
91
94
{
92
95
"User":{
93
96
"id":38710,
@@ -106,13 +109,14 @@ Response:
106
109
"code":200,
107
110
"msg":"success"
108
111
}
109
-
</code></pre>
110
-
112
+
```
111
113
<br />
112
114
113
115
#### Get an Array of Users
116
+
114
117
Request:
115
-
<pre><codeclass="language-json">
118
+
119
+
```json
116
120
{
117
121
"[]":{
118
122
"count":3, //just get 3 results
@@ -121,12 +125,13 @@ Request:
121
125
}
122
126
}
123
127
}
124
-
</code></pre>
128
+
```
125
129
126
130
[Click here to test](http://apijson.cn:8080/get/{"[]":{"count":3,"User":{"@column":"id,name"}}})
127
131
128
132
Response:
129
-
<pre><codeclass="language-json">
133
+
134
+
```json
130
135
{
131
136
"[]":[
132
137
{
@@ -151,7 +156,7 @@ Response:
151
156
"code":200,
152
157
"msg":"success"
153
158
}
154
-
</code></pre>
159
+
```
155
160
156
161
<br />
157
162
@@ -188,28 +193,28 @@ In the menu at the right, click libs, right click apijson-orm.jar,click add as l
188
193
189
194
Open apijson.demo.server.DemoSQLConfig. In line 40-61, change return values of `getDBUri`,`getDBAccount`,`getDBPassword`,`getSchema` to your own database.<br/>
0 commit comments