mushroom-cli 1.2.0-alpha.10 → 1.2.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/common.js +11 -1
- package/docs/docs.v2.html +154 -125
- package/docs/docs.v2.js +104 -34
- package/gen/gen-api-docs.js +1 -1
- package/gen/gen-ts-driver.js +21 -25
- package/package.json +2 -2
package/docs/docs.v2.html
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
margin-top: 5px;
|
|
35
35
|
}
|
|
36
36
|
h1, h2 {
|
|
37
|
-
font-family: 'Segoe UI Light', "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
37
|
+
font-family: 'Segoe UI Light', 'San Francisco (SF Pro Display)', 'Gill Sans', Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
38
38
|
}
|
|
39
39
|
h1 {
|
|
40
40
|
font-size: 48px;
|
|
@@ -174,6 +174,32 @@
|
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
+
#project-rootUrls li label {
|
|
178
|
+
margin: 0 0 0 15px;
|
|
179
|
+
}
|
|
180
|
+
#project-rootUrls li:hover label::before {
|
|
181
|
+
display: inline-block;
|
|
182
|
+
cursor: pointer;
|
|
183
|
+
color: #c33;
|
|
184
|
+
content: "x";
|
|
185
|
+
}
|
|
186
|
+
#project-rootUrls li.origin:hover label::before {
|
|
187
|
+
display: none;
|
|
188
|
+
}
|
|
189
|
+
#project-rootUrls span {
|
|
190
|
+
cursor: pointer;
|
|
191
|
+
color: #777;
|
|
192
|
+
}
|
|
193
|
+
#project-rootUrls span.selected {
|
|
194
|
+
color: #333;
|
|
195
|
+
font-weight: bold;
|
|
196
|
+
}
|
|
197
|
+
#project-rootUrls span:hover {
|
|
198
|
+
color: #333;
|
|
199
|
+
}
|
|
200
|
+
#project-rootUrls span.add-new:hover {
|
|
201
|
+
text-decoration: underline;
|
|
202
|
+
}
|
|
177
203
|
#project-roles {
|
|
178
204
|
padding: 0 40px;
|
|
179
205
|
}
|
|
@@ -223,8 +249,11 @@
|
|
|
223
249
|
<body>
|
|
224
250
|
<div class="info">
|
|
225
251
|
<h1 id="project-title"></h1>
|
|
226
|
-
<p>API root: <span id="project-rootUrl"></span></p>
|
|
227
252
|
<p id="project-description" class="hide-if-empty">{{description}}</p>
|
|
253
|
+
<p>
|
|
254
|
+
API root:
|
|
255
|
+
<ul id="project-rootUrls"></ul>
|
|
256
|
+
</p>
|
|
228
257
|
<div>
|
|
229
258
|
<ul id="project-roles" class="hide-if-empty"></ul>
|
|
230
259
|
</div>
|
|
@@ -450,7 +479,7 @@
|
|
|
450
479
|
<div class="panel panel-info" id="extension-auth-login">
|
|
451
480
|
<div class="panel-heading" onclick="toggleParentClass.call(this)" data-toggled-class="show" data-hash="$auth.login">
|
|
452
481
|
<span>POST</span>
|
|
453
|
-
{{rootUrl}}auth/login
|
|
482
|
+
<span class="root-url">{{rootUrl}}</span>auth/login
|
|
454
483
|
<span class="description">Đăng nhập</span>
|
|
455
484
|
</div>
|
|
456
485
|
<div class="panel-body">
|
|
@@ -562,7 +591,7 @@ catch (Exception ex)
|
|
|
562
591
|
<div class="http-snippet">
|
|
563
592
|
Đăng nhập
|
|
564
593
|
<pre data-language="http">POST {{rootUrlPath}}auth/login HTTP/1.1
|
|
565
|
-
Host: {{domain}}
|
|
594
|
+
Host: <span class="domain">{{domain}}</span>
|
|
566
595
|
Content-Type: application/json
|
|
567
596
|
|
|
568
597
|
{
|
|
@@ -575,7 +604,7 @@ Content-Type: application/json
|
|
|
575
604
|
<div class="curl-snippet">
|
|
576
605
|
cURL
|
|
577
606
|
<pre data-language="cURL">curl -X POST \
|
|
578
|
-
'{{rootUrl}}auth/login' \
|
|
607
|
+
'<span class="root-url">{{rootUrl}}</span>auth/login' \
|
|
579
608
|
-H 'Content-Type: application/json' \
|
|
580
609
|
-d '{
|
|
581
610
|
"account": "<span class="place-holder">account</span>",
|
|
@@ -584,7 +613,7 @@ Content-Type: application/json
|
|
|
584
613
|
</pre>
|
|
585
614
|
Shell
|
|
586
615
|
<pre data-language="cURL">curl --request POST \
|
|
587
|
-
--url '{{rootUrl}}auth/login' \
|
|
616
|
+
--url '<span class="root-url">{{rootUrl}}</span>auth/login' \
|
|
588
617
|
--header 'Content-Type: application/json' \
|
|
589
618
|
--data '{\n"account": "<span class="place-holder">account</span>", \n"password": "<span class="place-holder">password</span>"\n}'
|
|
590
619
|
</pre>
|
|
@@ -656,7 +685,7 @@ API.getAuthentication().loginAsync("your account", "your password", loginResult
|
|
|
656
685
|
<div class="panel panel-primary" id="extension-auth-logout">
|
|
657
686
|
<div class="panel-heading" onclick="toggleParentClass.call(this)" data-toggled-class="show" data-hash="$auth.logout">
|
|
658
687
|
<span>GET</span>
|
|
659
|
-
{{rootUrl}}auth/logout
|
|
688
|
+
<span class="root-url">{{rootUrl}}</span>auth/logout
|
|
660
689
|
<span class="description">Đăng xuất</span>
|
|
661
690
|
</div>
|
|
662
691
|
<div class="panel-body">
|
|
@@ -724,11 +753,11 @@ catch (Exception ex)
|
|
|
724
753
|
<div class="http-snippet">
|
|
725
754
|
Đăng xuất khỏi tất cả các thiết bị sử dụng chung chung phiên làm việc của người dùng hiện tại (token hiện thời)
|
|
726
755
|
<pre data-language="http">GET {{rootUrlPath}}auth/logout?invalidAllSession=false HTTP/1.1
|
|
727
|
-
Host: {{domain}}
|
|
756
|
+
Host: <span class="domain">{{domain}}</span>
|
|
728
757
|
Token: <span class="place-holder">your token</span></pre>
|
|
729
758
|
Đăng xuất khỏi tất cả các phiên làm việc của người dùng hiện tại
|
|
730
759
|
<pre data-language="http">GET {{rootUrlPath}}auth/logout?invalidAllSession=true HTTP/1.1
|
|
731
|
-
Host: {{domain}}
|
|
760
|
+
Host: <span class="domain">{{domain}}</span>
|
|
732
761
|
Token: <span class="place-holder">your token</span></pre>
|
|
733
762
|
</div>
|
|
734
763
|
</div>
|
|
@@ -736,12 +765,12 @@ Token: <span class="place-holder">your token</span></pre>
|
|
|
736
765
|
<div class="curl-snippet">
|
|
737
766
|
cURL
|
|
738
767
|
<pre data-language="cURL">curl -X GET \
|
|
739
|
-
'{{rootUrl}}auth/logout?invalidAllSession=<span class="place-holder">true|false</span>' \
|
|
740
|
-
-H 'Token: <span class="place-holder">
|
|
768
|
+
'<span class="root-url">{{rootUrl}}</span>auth/logout?invalidAllSession=<span class="place-holder">true|false</span>' \
|
|
769
|
+
-H 'Token: <span class="place-holder">{<span>{</span>TOKEN}}</span>'</pre>
|
|
741
770
|
Shell
|
|
742
771
|
<pre data-language="cURL">curl --request GET \
|
|
743
|
-
--url '{{rootUrl}}auth/logout?invalidAllSession=<span class="place-holder">true|false</span>' \
|
|
744
|
-
--header 'Token: <span class="place-holder">
|
|
772
|
+
--url '<span class="root-url">{{rootUrl}}</span>auth/logout?invalidAllSession=<span class="place-holder">true|false</span>' \
|
|
773
|
+
--header 'Token: <span class="place-holder">{<span>{</span>TOKEN}}</span>'</pre>
|
|
745
774
|
</div>
|
|
746
775
|
</div>
|
|
747
776
|
<div class="tab-page Java" data-role="Java">
|
|
@@ -820,7 +849,7 @@ API.getAuthentication().logoutAsync(logoutMode, () -> {
|
|
|
820
849
|
<div class="panel panel-primary" id="extension-auth-status">
|
|
821
850
|
<div class="panel-heading" onclick="toggleParentClass.call(this)" data-toggled-class="show" data-hash="$auth.status">
|
|
822
851
|
<span>GET</span>
|
|
823
|
-
{{rootUrl}}auth/status
|
|
852
|
+
<span class="root-url">{{rootUrl}}</span>auth/status
|
|
824
853
|
<span class="description">Truy vấn trạng thái token</span>
|
|
825
854
|
</div>
|
|
826
855
|
<div class="panel-body">
|
|
@@ -885,7 +914,7 @@ catch (MushroomException ex)
|
|
|
885
914
|
<div class="http-snippet">
|
|
886
915
|
Kiểm tra trạng thái đăng nhập
|
|
887
916
|
<pre data-language="http">GET {{rootUrlPath}}auth/status HTTP/1.1
|
|
888
|
-
Host: {{domain}}
|
|
917
|
+
Host: <span class="domain">{{domain}}</span>
|
|
889
918
|
Token: your_token (if have)</pre>
|
|
890
919
|
</div>
|
|
891
920
|
</div>
|
|
@@ -893,12 +922,12 @@ Token: your_token (if have)</pre>
|
|
|
893
922
|
<div class="curl-snippet">
|
|
894
923
|
cURL
|
|
895
924
|
<pre data-language="cURL">curl -X GET \
|
|
896
|
-
'{{rootUrl}}auth/status' \
|
|
897
|
-
-H 'Token:
|
|
925
|
+
'<span class="root-url">{{rootUrl}}</span>auth/status' \
|
|
926
|
+
-H 'Token: {<span>{</span>TOKEN}}'</pre>
|
|
898
927
|
Shell
|
|
899
928
|
<pre data-language="cURL">curl --request GET \
|
|
900
|
-
--url '{{rootUrl}}auth/status' \
|
|
901
|
-
--header 'Token:
|
|
929
|
+
--url '<span class="root-url">{{rootUrl}}</span>auth/status' \
|
|
930
|
+
--header 'Token: {<span>{</span>TOKEN}}'</pre>
|
|
902
931
|
</div>
|
|
903
932
|
</div>
|
|
904
933
|
<div class="tab-page Java" data-role="Java">
|
|
@@ -966,7 +995,7 @@ API.getAuthentication().statusAsync(loginStatus -> {
|
|
|
966
995
|
<div class="panel panel-primary" id="extension-auth-me">
|
|
967
996
|
<div class="panel-heading" onclick="toggleParentClass.call(this)" data-toggled-class="show" data-hash="$auth.me">
|
|
968
997
|
<span>GET</span>
|
|
969
|
-
{{rootUrl}}auth/me
|
|
998
|
+
<span class="root-url">{{rootUrl}}</span>auth/me
|
|
970
999
|
<span class="description">Lấy về thông tin người dùng hiện tại</span>
|
|
971
1000
|
</div>
|
|
972
1001
|
<div class="panel-body">
|
|
@@ -1033,7 +1062,7 @@ catch (MushroomException ex)
|
|
|
1033
1062
|
<div class="http-snippet">
|
|
1034
1063
|
Lấy về thông tin người dùng hiện tại
|
|
1035
1064
|
<pre data-language="http">GET {{rootUrlPath}}auth/me HTTP/1.1
|
|
1036
|
-
Host: {{domain}}
|
|
1065
|
+
Host: <span class="domain">{{domain}}</span>
|
|
1037
1066
|
Token: your_token</pre>
|
|
1038
1067
|
</div>
|
|
1039
1068
|
</div>
|
|
@@ -1041,12 +1070,12 @@ Token: your_token</pre>
|
|
|
1041
1070
|
<div class="curl-snippet">
|
|
1042
1071
|
cURL
|
|
1043
1072
|
<pre data-language="cURL">curl -X GET \
|
|
1044
|
-
'{{rootUrl}}auth/me' \
|
|
1045
|
-
-H 'Token:
|
|
1073
|
+
'<span class="root-url">{{rootUrl}}</span>auth/me' \
|
|
1074
|
+
-H 'Token: {<span>{</span>TOKEN}}'</pre>
|
|
1046
1075
|
Shell
|
|
1047
1076
|
<pre data-language="cURL">curl --request GET \
|
|
1048
|
-
--url '{{rootUrl}}auth/me' \
|
|
1049
|
-
--header 'Token:
|
|
1077
|
+
--url '<span class="root-url">{{rootUrl}}</span>auth/me' \
|
|
1078
|
+
--header 'Token: {<span>{</span>TOKEN}}'</pre>
|
|
1050
1079
|
</div>
|
|
1051
1080
|
</div>
|
|
1052
1081
|
<div class="tab-page Java" data-role="Java">
|
|
@@ -1115,7 +1144,7 @@ API.getAuthentication().meAsync(user -> {
|
|
|
1115
1144
|
<div class="panel panel-info" id="extension-auth-register">
|
|
1116
1145
|
<div class="panel-heading" onclick="toggleParentClass.call(this)" data-toggled-class="show" data-hash="$auth.register">
|
|
1117
1146
|
<span>POST</span>
|
|
1118
|
-
{{rootUrl}}auth/register
|
|
1147
|
+
<span class="root-url">{{rootUrl}}</span>auth/register
|
|
1119
1148
|
<span class="description">Đăng ký tài khoản</span>
|
|
1120
1149
|
</div>
|
|
1121
1150
|
<div class="panel-body">
|
|
@@ -1195,7 +1224,7 @@ catch (MushroomException ex)
|
|
|
1195
1224
|
<div class="http-snippet">
|
|
1196
1225
|
Đăng ký tài khoản
|
|
1197
1226
|
<pre data-language="http">POST {{rootUrlPath}}auth/register HTTP/1.1
|
|
1198
|
-
Host: {{domain}}
|
|
1227
|
+
Host: <span class="domain">{{domain}}</span>
|
|
1199
1228
|
Content-Type: application/json
|
|
1200
1229
|
|
|
1201
1230
|
{
|
|
@@ -1208,7 +1237,7 @@ Content-Type: application/json
|
|
|
1208
1237
|
<div class="curl-snippet">
|
|
1209
1238
|
cURL
|
|
1210
1239
|
<pre data-language="cURL">curl -X POST \
|
|
1211
|
-
'{{rootUrl}}auth/register' \
|
|
1240
|
+
'<span class="root-url">{{rootUrl}}</span>auth/register' \
|
|
1212
1241
|
-H 'Content-Type: application/json' \
|
|
1213
1242
|
-d '{
|
|
1214
1243
|
"account": "<span class="place-holder">account</span>",
|
|
@@ -1216,7 +1245,7 @@ Content-Type: application/json
|
|
|
1216
1245
|
}'</pre>
|
|
1217
1246
|
Shell
|
|
1218
1247
|
<pre data-language="cURL">curl --request POST \
|
|
1219
|
-
--url '{{rootUrl}}auth/register' \
|
|
1248
|
+
--url '<span class="root-url">{{rootUrl}}</span>auth/register' \
|
|
1220
1249
|
--header 'Content-Type: application/json' \
|
|
1221
1250
|
--data '{\n"account": "<span class="place-holder">account</span>", \n"password": "<span class="place-holder">password</span>"\n}'</pre>
|
|
1222
1251
|
</div>
|
|
@@ -1295,7 +1324,7 @@ API.getAuthentication().registerAsync("your account", "your password", registerR
|
|
|
1295
1324
|
<div class="panel panel-info" id="extension-auth-activate">
|
|
1296
1325
|
<div class="panel-heading" onclick="toggleParentClass.call(this)" data-toggled-class="show" data-hash="$auth.activate">
|
|
1297
1326
|
<span>POST</span>
|
|
1298
|
-
{{rootUrl}}auth/activate
|
|
1327
|
+
<span class="root-url">{{rootUrl}}</span>auth/activate
|
|
1299
1328
|
<span class="description">Kích hoạt tài khoản</span>
|
|
1300
1329
|
</div>
|
|
1301
1330
|
<div class="panel-body">
|
|
@@ -1363,7 +1392,7 @@ catch (MushroomException ex)
|
|
|
1363
1392
|
<div class="http-snippet">
|
|
1364
1393
|
Kích hoạt tài khoản
|
|
1365
1394
|
<pre data-language="http">POST {{rootUrlPath}}auth/activate HTTP/1.1
|
|
1366
|
-
Host: {{domain}}
|
|
1395
|
+
Host: <span class="domain">{{domain}}</span>
|
|
1367
1396
|
Content-Type: application/json
|
|
1368
1397
|
|
|
1369
1398
|
{
|
|
@@ -1376,7 +1405,7 @@ Content-Type: application/json
|
|
|
1376
1405
|
<div class="curl-snippet">
|
|
1377
1406
|
cURL
|
|
1378
1407
|
<pre data-language="cURL">curl -X POST \
|
|
1379
|
-
'{{rootUrl}}auth/activate' \
|
|
1408
|
+
'<span class="root-url">{{rootUrl}}</span>auth/activate' \
|
|
1380
1409
|
-H 'Content-Type: application/json' \
|
|
1381
1410
|
-d '{
|
|
1382
1411
|
"account": "<span class="place-holder">account</span>",
|
|
@@ -1384,7 +1413,7 @@ Content-Type: application/json
|
|
|
1384
1413
|
}'</pre>
|
|
1385
1414
|
Shell
|
|
1386
1415
|
<pre data-language="cURL">curl --request POST \
|
|
1387
|
-
--url '{{rootUrl}}auth/activate' \
|
|
1416
|
+
--url '<span class="root-url">{{rootUrl}}</span>auth/activate' \
|
|
1388
1417
|
--header 'Content-Type: application/json' \
|
|
1389
1418
|
--data '{\n"account": "<span class="place-holder">account</span>", \n"code": "<span class="place-holder">code</span>"\n}'</pre>
|
|
1390
1419
|
</div>
|
|
@@ -1454,7 +1483,7 @@ API.getAuthentication().activateAsync("your account", "activation code", id -> {
|
|
|
1454
1483
|
<div class="panel panel-info" id="extension-auth-recover_password">
|
|
1455
1484
|
<div class="panel-heading" onclick="toggleParentClass.call(this)" data-toggled-class="show" data-hash="$auth.recover_password">
|
|
1456
1485
|
<span>POST</span>
|
|
1457
|
-
{{rootUrl}}auth/recover-password
|
|
1486
|
+
<span class="root-url">{{rootUrl}}</span>auth/recover-password
|
|
1458
1487
|
<span class="description">Lấy lại mật khẩu</span>
|
|
1459
1488
|
</div>
|
|
1460
1489
|
<div class="panel-body">
|
|
@@ -1521,7 +1550,7 @@ catch (MushroomException ex)
|
|
|
1521
1550
|
<div class="http-snippet">
|
|
1522
1551
|
Lấy lại mật khẩu
|
|
1523
1552
|
<pre data-language="http">POST {{rootUrlPath}}auth/recover-password HTTP/1.1
|
|
1524
|
-
Host: {{domain}}
|
|
1553
|
+
Host: <span class="domain">{{domain}}</span>
|
|
1525
1554
|
Content-Type: application/json
|
|
1526
1555
|
|
|
1527
1556
|
{
|
|
@@ -1533,12 +1562,12 @@ Content-Type: application/json
|
|
|
1533
1562
|
<div class="curl-snippet">
|
|
1534
1563
|
cURL
|
|
1535
1564
|
<pre data-language="cURL">curl -X POST \
|
|
1536
|
-
'{{rootUrl}}auth/recover-password' \
|
|
1565
|
+
'<span class="root-url">{{rootUrl}}</span>auth/recover-password' \
|
|
1537
1566
|
-H 'Content-Type: application/json' \
|
|
1538
1567
|
-d '{"account": "<span class="place-holder">account</span>"}'</pre>
|
|
1539
1568
|
Shell
|
|
1540
1569
|
<pre data-language="cURL">curl --request POST \
|
|
1541
|
-
--url '{{rootUrl}}auth/recover-password' \
|
|
1570
|
+
--url '<span class="root-url">{{rootUrl}}</span>auth/recover-password' \
|
|
1542
1571
|
--header 'Content-Type: application/json' \
|
|
1543
1572
|
--data '{"account": "<span class="place-holder">account</span>"}'</pre>
|
|
1544
1573
|
</div>
|
|
@@ -1607,7 +1636,7 @@ API.getAuthentication().recoverPasswordAsync("your account", id -> {
|
|
|
1607
1636
|
<div class="panel panel-info" id="extension-auth-reset_password">
|
|
1608
1637
|
<div class="panel-heading" onclick="toggleParentClass.call(this)" data-toggled-class="show" data-hash="$auth.reset_password">
|
|
1609
1638
|
<span>POST</span>
|
|
1610
|
-
{{rootUrl}}auth/reset-password
|
|
1639
|
+
<span class="root-url">{{rootUrl}}</span>auth/reset-password
|
|
1611
1640
|
<span class="description">Khôi phục mật khẩu / Đổi mật khẩu</span>
|
|
1612
1641
|
</div>
|
|
1613
1642
|
<div class="panel-body">
|
|
@@ -1700,7 +1729,7 @@ catch (MushroomException ex)
|
|
|
1700
1729
|
<div class="http-snippet">
|
|
1701
1730
|
Khôi phục mật khẩu
|
|
1702
1731
|
<pre data-language="http">POST {{rootUrlPath}}auth/reset-password HTTP/1.1
|
|
1703
|
-
Host: {{domain}}
|
|
1732
|
+
Host: <span class="domain">{{domain}}</span>
|
|
1704
1733
|
Content-Type: application/json
|
|
1705
1734
|
|
|
1706
1735
|
{
|
|
@@ -1710,7 +1739,7 @@ Content-Type: application/json
|
|
|
1710
1739
|
}</pre>
|
|
1711
1740
|
Đổi mật khẩu
|
|
1712
1741
|
<pre data-language="http">POST {{rootUrlPath}}auth/reset-password HTTP/1.1
|
|
1713
|
-
Host: {{domain}}
|
|
1742
|
+
Host: <span class="domain">{{domain}}</span>
|
|
1714
1743
|
Content-Type: application/json
|
|
1715
1744
|
Token: your_token
|
|
1716
1745
|
|
|
@@ -1725,7 +1754,7 @@ Token: your_token
|
|
|
1725
1754
|
<div class="curl-snippet">
|
|
1726
1755
|
cURL - Khôi phục mật khẩu
|
|
1727
1756
|
<pre data-language="cURL">curl -X POST \
|
|
1728
|
-
'{{rootUrl}}auth/reset-password' \
|
|
1757
|
+
'<span class="root-url">{{rootUrl}}</span>auth/reset-password' \
|
|
1729
1758
|
-H 'Content-Type: application/json' \
|
|
1730
1759
|
-d '{
|
|
1731
1760
|
"account": "<span class="place-holder">account</span>",
|
|
@@ -1734,9 +1763,9 @@ Token: your_token
|
|
|
1734
1763
|
}'</pre>
|
|
1735
1764
|
cURL - Đổi mật khẩu
|
|
1736
1765
|
<pre data-language="cURL">curl -X POST \
|
|
1737
|
-
'{{rootUrl}}auth/reset-password' \
|
|
1766
|
+
'<span class="root-url">{{rootUrl}}</span>auth/reset-password' \
|
|
1738
1767
|
-H 'Content-Type: application/json' \
|
|
1739
|
-
-H 'Token:
|
|
1768
|
+
-H 'Token: {<span>{</span>TOKEN}}' \
|
|
1740
1769
|
-d '{
|
|
1741
1770
|
"account": "<span class="place-holder">account</span>",
|
|
1742
1771
|
"oldPassword": "<span class="place-holder">oldPassword</span>",
|
|
@@ -1745,15 +1774,15 @@ Token: your_token
|
|
|
1745
1774
|
Shell - Khôi phục mật khẩu
|
|
1746
1775
|
<pre data-language="cURL">curl --request POST \
|
|
1747
1776
|
--url '{{rootUrlPath}}auth/reset-password' \
|
|
1748
|
-
--header 'Host: {{domain}}' \
|
|
1777
|
+
--header 'Host: <span class="domain">{{domain}}</span>' \
|
|
1749
1778
|
--header 'Content-Type: application/json' \
|
|
1750
1779
|
--data '{\n"account": "<span class="place-holder">account</span>",\n"code": "<span class="place-holder">code</span>",\n"newPassword": "<span class="place-holder">newPassword</span>"\n}'</pre>
|
|
1751
1780
|
Shell - Đổi mật khẩu
|
|
1752
1781
|
<pre data-language="cURL">curl --request POST \
|
|
1753
1782
|
--url '{{rootUrlPath}}auth/reset-password' \
|
|
1754
|
-
--header 'Host: {{domain}}' \
|
|
1783
|
+
--header 'Host: <span class="domain">{{domain}}</span>' \
|
|
1755
1784
|
--header 'Content-Type: application/json' \
|
|
1756
|
-
--header 'Token:
|
|
1785
|
+
--header 'Token: {<span>{</span>TOKEN}}' \
|
|
1757
1786
|
--data '{\n"account": "<span class="place-holder">account</span>",\n"oldPassword": "<span class="place-holder">oldPassword</span>",\n"newPassword": "<span class="place-holder">newPassword</span>"\n}'</pre>
|
|
1758
1787
|
</div>
|
|
1759
1788
|
</div>
|
|
@@ -1876,7 +1905,7 @@ API.getAuthentication().changePasswordAsync("your account", "your old password",
|
|
|
1876
1905
|
<div class="panel panel-info" id="extension-file-upload">
|
|
1877
1906
|
<div class="panel-heading" onclick="toggleParentClass.call(this)" data-toggled-class="show" data-hash="$file.upload">
|
|
1878
1907
|
<span>POST</span>
|
|
1879
|
-
{{rootUrl}}file/upload
|
|
1908
|
+
<span class="root-url">{{rootUrl}}</span>file/upload
|
|
1880
1909
|
<span class="description">Upload file</span>
|
|
1881
1910
|
</div>
|
|
1882
1911
|
<div class="panel-body">
|
|
@@ -1972,7 +2001,7 @@ catch (Exception ex)
|
|
|
1972
2001
|
<div class="http-snippet">
|
|
1973
2002
|
Upload file
|
|
1974
2003
|
<pre data-language="http">POST {{rootUrlPath}}file/upload HTTP/1.1
|
|
1975
|
-
Host: {{domain}}
|
|
2004
|
+
Host: <span class="domain">{{domain}}</span>
|
|
1976
2005
|
|
|
1977
2006
|
BINARY|BASE64|FORMDATA</pre>
|
|
1978
2007
|
</div>
|
|
@@ -2064,7 +2093,7 @@ API.fileExtension().uploadAsync(file, uploadResult -> {
|
|
|
2064
2093
|
<div class="panel panel-primary" id="extension-file-download">
|
|
2065
2094
|
<div class="panel-heading" onclick="toggleParentClass.call(this)" data-toggled-class="show" data-hash="$file.download">
|
|
2066
2095
|
<span>GET</span>
|
|
2067
|
-
{{rootUrl}}file/download
|
|
2096
|
+
<span class="root-url">{{rootUrl}}</span>file/download
|
|
2068
2097
|
<span class="description">Download file</span>
|
|
2069
2098
|
</div>
|
|
2070
2099
|
<div class="panel-body">
|
|
@@ -2106,7 +2135,7 @@ Content-Range: byte {realStartIndex}-{realEndIndex}/{totalLength}
|
|
|
2106
2135
|
<div class="panel panel-primary" id="extension-file-thumb">
|
|
2107
2136
|
<div class="panel-heading" onclick="toggleParentClass.call(this)" data-toggled-class="show" data-hash="$file.thumb">
|
|
2108
2137
|
<span>GET</span>
|
|
2109
|
-
{{rootUrl}}file/thumb
|
|
2138
|
+
<span class="root-url">{{rootUrl}}</span>file/thumb
|
|
2110
2139
|
<span class="description">Download image thumbnail</span>
|
|
2111
2140
|
</div>
|
|
2112
2141
|
<div class="panel-body">
|
|
@@ -2226,15 +2255,15 @@ Last-Modified: {datetime}</pre>
|
|
|
2226
2255
|
</div>
|
|
2227
2256
|
<div class="tab-page HTML" data-role="HTML">
|
|
2228
2257
|
<div class="html-driver-snippet">
|
|
2229
|
-
<pre>Ảnh nguyên bản: <img src="{{rootUrl}}file/thumb?id=<em>your_file_id</em>" />
|
|
2230
|
-
Ảnh co về kích thước cố định: <img src="{{rootUrl}}file/thumb?id=<em>your_file_id</em>&r=stretch&w=100&h=150" />
|
|
2231
|
-
Ảnh vuông: <img src="{{rootUrl}}file/thumb?id=<em>your_file_id</em>&r=square&w=50" />
|
|
2232
|
-
Ảnh được co nằm trong kích thước cố định, phần thừa được tô màu: <img src="{{rootUrl}}file/thumb?id=<em>your_file_id</em>&r=zoom&w=100&h=150&b=0000ff" />
|
|
2233
|
-
Ảnh giữ tỉ lệ và cố định chiều ngang: <img src="{{rootUrl}}file/thumb?id=<em>your_file_id</em>&r=x&w=100" />
|
|
2234
|
-
Ảnh giữ tỉ lệ và cố định chiều cao: <img src="{{rootUrl}}file/thumb?id=<em>your_file_id</em>&r=y&h=150" />
|
|
2235
|
-
Ảnh cắt lấy một phần: <img src="{{rootUrl}}file/thumb?id=<em>your_file_id</em>&r=clip&w=100&h=150&va=top&ha=left" />
|
|
2236
|
-
Chỉ định định dạng ảnh jpg: <img src="{{rootUrl}}file/thumb?id=<em>your_file_id</em>&f=jpg" />
|
|
2237
|
-
Tạo hiệu ứng đen trắng: <img src="{{rootUrl}}file/thumb?id=<em>your_file_id</em>&e=grayscale" />
|
|
2258
|
+
<pre>Ảnh nguyên bản: <img src="<span class="root-url">{{rootUrl}}</span>file/thumb?id=<em>your_file_id</em>" />
|
|
2259
|
+
Ảnh co về kích thước cố định: <img src="<span class="root-url">{{rootUrl}}</span>file/thumb?id=<em>your_file_id</em>&r=stretch&w=100&h=150" />
|
|
2260
|
+
Ảnh vuông: <img src="<span class="root-url">{{rootUrl}}</span>file/thumb?id=<em>your_file_id</em>&r=square&w=50" />
|
|
2261
|
+
Ảnh được co nằm trong kích thước cố định, phần thừa được tô màu: <img src="<span class="root-url">{{rootUrl}}</span>file/thumb?id=<em>your_file_id</em>&r=zoom&w=100&h=150&b=0000ff" />
|
|
2262
|
+
Ảnh giữ tỉ lệ và cố định chiều ngang: <img src="<span class="root-url">{{rootUrl}}</span>file/thumb?id=<em>your_file_id</em>&r=x&w=100" />
|
|
2263
|
+
Ảnh giữ tỉ lệ và cố định chiều cao: <img src="<span class="root-url">{{rootUrl}}</span>file/thumb?id=<em>your_file_id</em>&r=y&h=150" />
|
|
2264
|
+
Ảnh cắt lấy một phần: <img src="<span class="root-url">{{rootUrl}}</span>file/thumb?id=<em>your_file_id</em>&r=clip&w=100&h=150&va=top&ha=left" />
|
|
2265
|
+
Chỉ định định dạng ảnh jpg: <img src="<span class="root-url">{{rootUrl}}</span>file/thumb?id=<em>your_file_id</em>&f=jpg" />
|
|
2266
|
+
Tạo hiệu ứng đen trắng: <img src="<span class="root-url">{{rootUrl}}</span>file/thumb?id=<em>your_file_id</em>&e=grayscale" />
|
|
2238
2267
|
</pre>
|
|
2239
2268
|
</div>
|
|
2240
2269
|
</div>
|
|
@@ -2292,7 +2321,7 @@ Tạo hiệu ứng đen trắng: <img src="{{rootUrl}}file/thumb?id=<em>your_
|
|
|
2292
2321
|
<div class="panel panel-primary" id="extension-file-zip">
|
|
2293
2322
|
<div class="panel-heading" onclick="toggleParentClass.call(this)" data-toggled-class="show" data-hash="$file.zip">
|
|
2294
2323
|
<span>GET</span>
|
|
2295
|
-
{{rootUrl}}file/zip
|
|
2324
|
+
<span class="root-url">{{rootUrl}}</span>file/zip
|
|
2296
2325
|
<span class="description">Download zip file</span>
|
|
2297
2326
|
</div>
|
|
2298
2327
|
<div class="panel-body">
|
|
@@ -2326,7 +2355,7 @@ Content-Disposition: attachment; filename="{name}"</pre>
|
|
|
2326
2355
|
<div class="panel panel-info" id="extension-mailing-sent">
|
|
2327
2356
|
<div class="panel-heading" onclick="toggleParentClass.call(this)" data-toggled-class="show" data-hash="$mailing.sent">
|
|
2328
2357
|
<span>POST</span>
|
|
2329
|
-
{{rootUrl}}mailing/sent
|
|
2358
|
+
<span class="root-url">{{rootUrl}}</span>mailing/sent
|
|
2330
2359
|
<span class="description">Tạo lệnh gửi mail</span>
|
|
2331
2360
|
</div>
|
|
2332
2361
|
<div class="panel-body">
|
|
@@ -2451,7 +2480,7 @@ try {
|
|
|
2451
2480
|
<div class="panel panel-primary" id="extension-mailing-get">
|
|
2452
2481
|
<div class="panel-heading" onclick="toggleParentClass.call(this)" data-toggled-class="show" data-hash="$mailing.get">
|
|
2453
2482
|
<span>GET</span>
|
|
2454
|
-
{{rootUrl}}mailing/get
|
|
2483
|
+
<span class="root-url">{{rootUrl}}</span>mailing/get
|
|
2455
2484
|
<span class="description">Lấy thông tin lệnh gửi mail</span>
|
|
2456
2485
|
</div>
|
|
2457
2486
|
<div class="panel-body">
|
|
@@ -2534,7 +2563,7 @@ catch (error) {
|
|
|
2534
2563
|
<div class="panel panel-danger" id="extension-mailing-discard">
|
|
2535
2564
|
<div class="panel-heading" onclick="toggleParentClass.call(this)" data-toggled-class="show" data-hash="$mailing.discard">
|
|
2536
2565
|
<span>DELETE</span>
|
|
2537
|
-
{{rootUrl}}mailing/discard
|
|
2566
|
+
<span class="root-url">{{rootUrl}}</span>mailing/discard
|
|
2538
2567
|
<span class="description">Hủy lệnh gửi mail</span>
|
|
2539
2568
|
</div>
|
|
2540
2569
|
<div class="panel-body">
|
|
@@ -2649,7 +2678,7 @@ catch (error) {
|
|
|
2649
2678
|
<div id="action-{{entityName}}-{{actionName}}" class="{{className}}">
|
|
2650
2679
|
<div class="panel-heading" onclick="renderEntityAction.call(this, '{{entityName}}', '{{actionName}}'); toggleParentClass.call(this)" data-toggled-class="show" data-hash="{{entityName}}.{{actionName}}">
|
|
2651
2680
|
{{actionHttpMethod}}
|
|
2652
|
-
{{actionApiUrl}}
|
|
2681
|
+
<span class="contain-root-url">{{actionApiUrl}}</span>
|
|
2653
2682
|
<span class="description">{{actionDescription}}</span>
|
|
2654
2683
|
</div>
|
|
2655
2684
|
<div class="panel-body">
|
|
@@ -2784,12 +2813,12 @@ catch (Exception ex)
|
|
|
2784
2813
|
<div class="http-snippet">
|
|
2785
2814
|
Đơn giản
|
|
2786
2815
|
<pre data-language="http">GET {{rootUrlPath}}{{entityName}}s HTTP/1.1
|
|
2787
|
-
Host: {{domain}}
|
|
2816
|
+
Host: <span class="domain">{{domain}}</span><span style="display: {{tokenDisplay}}">
|
|
2788
2817
|
Token: your token
|
|
2789
2818
|
</span></pre>
|
|
2790
2819
|
Đầy đủ
|
|
2791
2820
|
<pre data-language="http">GET {{rootUrlPath}}{{entityName}}s?field1=value1&field2.subfield=value2<span class="separated-items">&$fields={{fields:html}}</span><span class="separated-items" style="display: {{allowSortingsDisplay}}">&$sort={{sortFields:html}}</span><span style="display: {{limitOffsetDisplay}}">&$limit=limit&$offset=offset</span><span style="display: {{pageDisplay}}">&$limit=limit&$page=page</span> HTTP/1.1
|
|
2792
|
-
Host: {{domain}}
|
|
2821
|
+
Host: <span class="domain">{{domain}}</span><span style="display: {{tokenDisplay}}">
|
|
2793
2822
|
Token: your token
|
|
2794
2823
|
</span></pre>
|
|
2795
2824
|
</div>
|
|
@@ -2798,18 +2827,18 @@ Token: your token
|
|
|
2798
2827
|
<div class="curl-snippet">
|
|
2799
2828
|
Đơn giản
|
|
2800
2829
|
<pre data-language="cURL">curl -X GET \
|
|
2801
|
-
'{{rootUrl}}{{entityName}}s'<span style="display: {{tokenDisplay}}"> \
|
|
2802
|
-
-H 'Token:
|
|
2830
|
+
'<span class="root-url">{{rootUrl}}</span>{{entityName}}s'<span style="display: {{tokenDisplay}}"> \
|
|
2831
|
+
-H 'Token: {<span>{</span>TOKEN}}'
|
|
2803
2832
|
</span></pre>
|
|
2804
2833
|
Đầy đủ
|
|
2805
2834
|
<pre data-language="cURL">curl -X GET \
|
|
2806
|
-
'{{rootUrl}}{{entityName}}s?field1=value1&field2.subfield=value2<span class="separated-items">&$fields={{fields:html}}</span><span class="separated-items" style="display: {{allowSortingsDisplay}}">&$sort={{sortFields:html}}</span><span style="display: {{limitOffsetDisplay}}">&$limit=limit&$offset=offset</span><span style="display: {{pageDisplay}}"'>&$limit=limit&$page=page</span>'<span style="display: {{tokenDisplay}}"> \
|
|
2807
|
-
-H 'Token:
|
|
2835
|
+
'<span class="root-url">{{rootUrl}}</span>{{entityName}}s?field1=value1&field2.subfield=value2<span class="separated-items">&$fields={{fields:html}}</span><span class="separated-items" style="display: {{allowSortingsDisplay}}">&$sort={{sortFields:html}}</span><span style="display: {{limitOffsetDisplay}}">&$limit=limit&$offset=offset</span><span style="display: {{pageDisplay}}"'>&$limit=limit&$page=page</span>'<span style="display: {{tokenDisplay}}"> \
|
|
2836
|
+
-H 'Token: {<span>{</span>TOKEN}}'
|
|
2808
2837
|
</span></pre>
|
|
2809
2838
|
Shell
|
|
2810
2839
|
<pre data-language="cURL">curl --request GET \
|
|
2811
|
-
--url '{{rootUrl}}{{entityName}}s?field1=value1&field2.subfield=value2<span class="separated-items">&$fields={{fields:html}}</span><span class="separated-items" style="display: {{allowSortingsDisplay}}">&$sort={{sortFields:html}}</span><span style="display: {{limitOffsetDisplay}}">&$limit=limit&$offset=offset</span><span style="display: none"> </span><span style="display: {{pageDisplay}}"'>&$limit=limit&$page=page</span>'<span style="display: {{tokenDisplay}}"> \
|
|
2812
|
-
-header 'Token:
|
|
2840
|
+
--url '<span class="root-url">{{rootUrl}}</span>{{entityName}}s?field1=value1&field2.subfield=value2<span class="separated-items">&$fields={{fields:html}}</span><span class="separated-items" style="display: {{allowSortingsDisplay}}">&$sort={{sortFields:html}}</span><span style="display: {{limitOffsetDisplay}}">&$limit=limit&$offset=offset</span><span style="display: none"> </span><span style="display: {{pageDisplay}}"'>&$limit=limit&$page=page</span>'<span style="display: {{tokenDisplay}}"> \
|
|
2841
|
+
-header 'Token: {<span>{</span>TOKEN}}'
|
|
2813
2842
|
</span></pre>
|
|
2814
2843
|
</div>
|
|
2815
2844
|
</script>
|
|
@@ -3053,12 +3082,12 @@ catch (Exception ex)
|
|
|
3053
3082
|
<div class="http-snippet">
|
|
3054
3083
|
Đơn giản
|
|
3055
3084
|
<pre data-language="http">GET {{rootUrlPath}}{{entityName}}s/<span class="place-holder">id</span> HTTP/1.1
|
|
3056
|
-
Host: {{domain}}
|
|
3085
|
+
Host: <span class="domain">{{domain}}</span><span style="display: {{tokenDisplay}}">
|
|
3057
3086
|
Token: your token
|
|
3058
3087
|
</span></pre>
|
|
3059
3088
|
Đầy đủ
|
|
3060
3089
|
<pre data-language="http">GET {{rootUrlPath}}{{entityName}}s/<span class="place-holder">id</span>?$fields=<span class="separated-items">{{fields:html}}</span> HTTP/1.1
|
|
3061
|
-
Host: {{domain}}
|
|
3090
|
+
Host: <span class="domain">{{domain}}</span><span style="display: {{tokenDisplay}}">
|
|
3062
3091
|
Token: your token
|
|
3063
3092
|
</span></pre>
|
|
3064
3093
|
</div>
|
|
@@ -3067,18 +3096,18 @@ Token: your token
|
|
|
3067
3096
|
<div class="curl-snippet">
|
|
3068
3097
|
Đơn giản
|
|
3069
3098
|
<pre data-language="cURL">curl -X GET \
|
|
3070
|
-
'{{rootUrl}}{{entityName}}s/<span class="place-holder">id</span>'<span style="display: {{tokenDisplay}}"> \
|
|
3071
|
-
-H 'Token:
|
|
3099
|
+
'<span class="root-url">{{rootUrl}}</span>{{entityName}}s/<span class="place-holder">id</span>'<span style="display: {{tokenDisplay}}"> \
|
|
3100
|
+
-H 'Token: {<span>{</span>TOKEN}}'
|
|
3072
3101
|
</span></pre>
|
|
3073
3102
|
Đầy đủ
|
|
3074
3103
|
<pre data-language="cURL">curl -X GET \
|
|
3075
|
-
'{{rootUrl}}{{entityName}}s/<span class="place-holder">id</span>?$fields=<span class="separated-items">{{fields:html}}</span>'<span style="display: {{tokenDisplay}}"> \
|
|
3076
|
-
-H 'Token:
|
|
3104
|
+
'<span class="root-url">{{rootUrl}}</span>{{entityName}}s/<span class="place-holder">id</span>?$fields=<span class="separated-items">{{fields:html}}</span>'<span style="display: {{tokenDisplay}}"> \
|
|
3105
|
+
-H 'Token: {<span>{</span>TOKEN}}'
|
|
3077
3106
|
</span></pre>
|
|
3078
3107
|
Shell
|
|
3079
3108
|
<pre data-language="cURL">curl --request GET \
|
|
3080
|
-
--url '{{rootUrl}}{{entityName}}s/<span class="place-holder">id</span>?$fields=<span class="separated-items">{{fields:html}}</span>'<span style="display: {{tokenDisplay}}"> \
|
|
3081
|
-
-header 'Token:
|
|
3109
|
+
--url '<span class="root-url">{{rootUrl}}</span>{{entityName}}s/<span class="place-holder">id</span>?$fields=<span class="separated-items">{{fields:html}}</span>'<span style="display: {{tokenDisplay}}"> \
|
|
3110
|
+
-header 'Token: {<span>{</span>TOKEN}}'
|
|
3082
3111
|
</span></pre>
|
|
3083
3112
|
</div>
|
|
3084
3113
|
</script>
|
|
@@ -3272,7 +3301,7 @@ catch (Exception ex)
|
|
|
3272
3301
|
<div class="http-snippet">
|
|
3273
3302
|
Tạo mới một {{entityName}}
|
|
3274
3303
|
<pre data-language="http">POST {{rootUrlPath}}{{entityName}}s HTTP/1.1
|
|
3275
|
-
Host: {{domain}}
|
|
3304
|
+
Host: <span class="domain">{{domain}}</span>
|
|
3276
3305
|
Content-Type: application/json<span style="display: {{tokenDisplay}}">
|
|
3277
3306
|
Token: your token</span>
|
|
3278
3307
|
|
|
@@ -3285,16 +3314,16 @@ Token: your token</span>
|
|
|
3285
3314
|
<div class="curl-snippet">
|
|
3286
3315
|
cURL
|
|
3287
3316
|
<pre data-language="cURL">curl -X POST \
|
|
3288
|
-
'{{rootUrl}}{{entityName}}s' \
|
|
3317
|
+
'<span class="root-url">{{rootUrl}}</span>{{entityName}}s' \
|
|
3289
3318
|
-H 'Content-Type: application/json' \ <span style="display: {{tokenDisplay}}">
|
|
3290
|
-
-H 'Token:
|
|
3319
|
+
-H 'Token: {<span>{</span>TOKEN}}' \</span>
|
|
3291
3320
|
-d '{
|
|
3292
3321
|
"fieldName": value
|
|
3293
3322
|
}'</pre>
|
|
3294
3323
|
Shell
|
|
3295
3324
|
<pre data-language="cURL">curl --request POST \
|
|
3296
|
-
--url '{{rootUrl}}{{entityName}}s' \<span style="display: {{tokenDisplay}}">
|
|
3297
|
-
--header 'Token:
|
|
3325
|
+
--url '<span class="root-url">{{rootUrl}}</span>{{entityName}}s' \<span style="display: {{tokenDisplay}}">
|
|
3326
|
+
--header 'Token: {<span>{</span>TOKEN}}' \</span>
|
|
3298
3327
|
--data '{\n"fieldName": value\n}'</pre>
|
|
3299
3328
|
</div>
|
|
3300
3329
|
</script>
|
|
@@ -3441,7 +3470,7 @@ catch (Exception ex)
|
|
|
3441
3470
|
<div class="http-snippet">
|
|
3442
3471
|
Tạo mới hàng loạt {{entityName}}
|
|
3443
3472
|
<pre data-language="http">POST {{rootUrlPath}}{{entityName}}s HTTP/1.1
|
|
3444
|
-
Host: {{domain}}
|
|
3473
|
+
Host: <span class="domain">{{domain}}</span>
|
|
3445
3474
|
Content-Type: application/json
|
|
3446
3475
|
X-Mushroom-Create-Many: true<span style="display: {{tokenDisplay}}">
|
|
3447
3476
|
Token: your token</span>
|
|
@@ -3457,10 +3486,10 @@ Token: your token</span>
|
|
|
3457
3486
|
<div class="curl-snippet">
|
|
3458
3487
|
cURL
|
|
3459
3488
|
<pre data-language="cURL">curl -X POST \
|
|
3460
|
-
'{{rootUrl}}{{entityName}}s' \
|
|
3489
|
+
'<span class="root-url">{{rootUrl}}</span>{{entityName}}s' \
|
|
3461
3490
|
-H 'Content-Type: application/json' \
|
|
3462
3491
|
-H 'X-Mushroom-Create-Many: true' \<span style="display: {{tokenDisplay}}">
|
|
3463
|
-
-H 'Token:
|
|
3492
|
+
-H 'Token: {<span>{</span>TOKEN}}' \</span>
|
|
3464
3493
|
-d '[
|
|
3465
3494
|
{
|
|
3466
3495
|
"fieldName": value
|
|
@@ -3468,9 +3497,9 @@ Token: your token</span>
|
|
|
3468
3497
|
]'</pre>
|
|
3469
3498
|
Shell
|
|
3470
3499
|
<pre data-language="cURL">curl --request POST \
|
|
3471
|
-
--url '{{rootUrl}}{{entityName}}s' \
|
|
3500
|
+
--url '<span class="root-url">{{rootUrl}}</span>{{entityName}}s' \
|
|
3472
3501
|
--header 'X-Mushroom-Create-Many: true' \<span style="display: {{tokenDisplay}}">
|
|
3473
|
-
--header 'Token:
|
|
3502
|
+
--header 'Token: {<span>{</span>TOKEN}}' \</span>
|
|
3474
3503
|
--data '[{\n"fieldName": value\n}]'</pre>
|
|
3475
3504
|
</div>
|
|
3476
3505
|
</script>
|
|
@@ -3620,7 +3649,7 @@ catch (Exception ex)
|
|
|
3620
3649
|
<div class="http-snippet">
|
|
3621
3650
|
Cập nhật một {{entityName}}
|
|
3622
3651
|
<pre data-language="http">PUT {{rootUrlPath}}{{entityName}}s/<span class="place-holder">id</span> HTTP/1.1
|
|
3623
|
-
Host: {{domain}}
|
|
3652
|
+
Host: <span class="domain">{{domain}}</span>
|
|
3624
3653
|
Content-Type: application/json<span style="display: {{tokenDisplay}}">
|
|
3625
3654
|
Token: your token</span>
|
|
3626
3655
|
|
|
@@ -3634,17 +3663,17 @@ Token: your token</span>
|
|
|
3634
3663
|
<div class="curl-snippet">
|
|
3635
3664
|
cURL
|
|
3636
3665
|
<pre data-language="cURL">curl -X PUT \
|
|
3637
|
-
'{{rootUrl}}{{entityName}}s/<span class="place-holder">id</span>' \
|
|
3666
|
+
'<span class="root-url">{{rootUrl}}</span>{{entityName}}s/<span class="place-holder">id</span>' \
|
|
3638
3667
|
-H 'Content-Type: application/json' \ <span style="display: {{tokenDisplay}}">
|
|
3639
|
-
-H 'Token:
|
|
3668
|
+
-H 'Token: {<span>{</span>TOKEN}}' \</span>
|
|
3640
3669
|
-d '{
|
|
3641
3670
|
"id": "<span class="place-holder">{{entityName}}_id</span>",
|
|
3642
3671
|
"<span class="place-holder">fieldName</span>": <span class="place-holder">value</span>
|
|
3643
3672
|
}'</pre>
|
|
3644
3673
|
Shell
|
|
3645
3674
|
<pre data-language="cURL">curl --request PUT \
|
|
3646
|
-
--url '{{rootUrl}}{{entityName}}s/<span class="place-holder">id</span>' \<span style="display: {{tokenDisplay}}">
|
|
3647
|
-
--header 'Token:
|
|
3675
|
+
--url '<span class="root-url">{{rootUrl}}</span>{{entityName}}s/<span class="place-holder">id</span>' \<span style="display: {{tokenDisplay}}">
|
|
3676
|
+
--header 'Token: {<span>{</span>TOKEN}}' \</span>
|
|
3648
3677
|
--data '{\n"id": "<span class="place-holder">{{entityName}}_id</span>", "<span class="place-holder">fieldName</span>": <span class="place-holder">value</span>\n}'</pre>
|
|
3649
3678
|
</div>
|
|
3650
3679
|
</script>
|
|
@@ -3794,7 +3823,7 @@ catch (Exception ex)
|
|
|
3794
3823
|
<div class="http-snippet">
|
|
3795
3824
|
Cập nhật hàng loạt {{entityName}}
|
|
3796
3825
|
<pre data-language="http">PUT {{rootUrlPath}}{{entityName}}s HTTP/1.1
|
|
3797
|
-
Host: {{domain}}
|
|
3826
|
+
Host: <span class="domain">{{domain}}</span>
|
|
3798
3827
|
Content-Type: application/json<span style="display: {{tokenDisplay}}">
|
|
3799
3828
|
Token: your token</span>
|
|
3800
3829
|
|
|
@@ -3809,9 +3838,9 @@ Token: your token</span>
|
|
|
3809
3838
|
<div class="curl-snippet">
|
|
3810
3839
|
cURL
|
|
3811
3840
|
<pre data-language="cURL">curl -X PUT \
|
|
3812
|
-
'{{rootUrl}}{{entityName}}s' \
|
|
3841
|
+
'<span class="root-url">{{rootUrl}}</span>{{entityName}}s' \
|
|
3813
3842
|
-H 'Content-Type: application/json' \<span style="display: {{tokenDisplay}}">
|
|
3814
|
-
-H 'Token:
|
|
3843
|
+
-H 'Token: {<span>{</span>TOKEN}}' \</span>
|
|
3815
3844
|
-d '[
|
|
3816
3845
|
{
|
|
3817
3846
|
"fieldName": value
|
|
@@ -3821,7 +3850,7 @@ Token: your token</span>
|
|
|
3821
3850
|
<pre data-language="cURL">curl --request PUT \
|
|
3822
3851
|
--url '{{rootUrlPath}}{{entityName}}s' \
|
|
3823
3852
|
--header 'X-Mushroom-Create-Many: true' \<span style="display: {{tokenDisplay}}">
|
|
3824
|
-
--header 'Token:
|
|
3853
|
+
--header 'Token: {<span>{</span>TOKEN}}' \</span>
|
|
3825
3854
|
--data '[{\n"fieldName": value\n}]'</pre>
|
|
3826
3855
|
</div>
|
|
3827
3856
|
</script>
|
|
@@ -3973,7 +4002,7 @@ catch (Exception ex)
|
|
|
3973
4002
|
<div class="http-snippet">
|
|
3974
4003
|
Cập nhật một {{entityName}}
|
|
3975
4004
|
<pre data-language="http">PATCH {{rootUrlPath}}{{entityName}}s/<span class="place-holder">id</span> HTTP/1.1
|
|
3976
|
-
Host: {{domain}}
|
|
4005
|
+
Host: <span class="domain">{{domain}}</span>
|
|
3977
4006
|
Content-Type: application/json<span style="display: {{tokenDisplay}}">
|
|
3978
4007
|
Token: your token</span>
|
|
3979
4008
|
|
|
@@ -3987,17 +4016,17 @@ Token: your token</span>
|
|
|
3987
4016
|
<div class="curl-snippet">
|
|
3988
4017
|
cURL
|
|
3989
4018
|
<pre data-language="cURL">curl -X PATCH \
|
|
3990
|
-
'{{rootUrl}}{{entityName}}s/<span class="place-holder">id</span>' \
|
|
4019
|
+
'<span class="root-url">{{rootUrl}}</span>{{entityName}}s/<span class="place-holder">id</span>' \
|
|
3991
4020
|
-H 'Content-Type: application/json' \ <span style="display: {{tokenDisplay}}">
|
|
3992
|
-
-H 'Token:
|
|
4021
|
+
-H 'Token: {<span>{</span>TOKEN}}' \</span>
|
|
3993
4022
|
-d '{
|
|
3994
4023
|
"id": "<span class="place-holder">{{entityName}}_id</span>",
|
|
3995
4024
|
"<span class="place-holder">fieldName</span>": <span class="place-holder">value</span>
|
|
3996
4025
|
}'</pre>
|
|
3997
4026
|
Shell
|
|
3998
4027
|
<pre data-language="cURL">curl --request PATCH \
|
|
3999
|
-
--url '{{rootUrl}}{{entityName}}s/<span class="place-holder">id</span>' \<span style="display: {{tokenDisplay}}">
|
|
4000
|
-
--header 'Token:
|
|
4028
|
+
--url '<span class="root-url">{{rootUrl}}</span>{{entityName}}s/<span class="place-holder">id</span>' \<span style="display: {{tokenDisplay}}">
|
|
4029
|
+
--header 'Token: {<span>{</span>TOKEN}}' \</span>
|
|
4001
4030
|
--data '{\n"id": "<span class="place-holder">{{entityName}}_id</span>", "<span class="place-holder">fieldName</span>": <span class="place-holder">value</span>\n}'</pre>
|
|
4002
4031
|
</div>
|
|
4003
4032
|
</script>
|
|
@@ -4124,7 +4153,7 @@ catch (Exception ex)
|
|
|
4124
4153
|
<div class="http-snippet">
|
|
4125
4154
|
Xóa nhật một {{entityName}}
|
|
4126
4155
|
<pre data-language="http">DELETE {{rootUrlPath}}{{entityName}}s/<span class="place-holder">id</span> HTTP/1.1
|
|
4127
|
-
Host: {{domain}}
|
|
4156
|
+
Host: <span class="domain">{{domain}}</span>
|
|
4128
4157
|
Content-Type: application/json<span style="display: {{tokenDisplay}}">
|
|
4129
4158
|
Token: your token</span></pre>
|
|
4130
4159
|
</div>
|
|
@@ -4133,13 +4162,13 @@ Token: your token</span></pre>
|
|
|
4133
4162
|
<div class="curl-snippet">
|
|
4134
4163
|
cURL
|
|
4135
4164
|
<pre data-language="cURL">curl -X DELETE \
|
|
4136
|
-
'{{rootUrl}}{{entityName}}s/<span class="place-holder">id</span>' \
|
|
4165
|
+
'<span class="root-url">{{rootUrl}}</span>{{entityName}}s/<span class="place-holder">id</span>' \
|
|
4137
4166
|
-H 'Content-Type: application/json' \ <span style="display: {{tokenDisplay}}">
|
|
4138
|
-
-H 'Token:
|
|
4167
|
+
-H 'Token: {<span>{</span>TOKEN}}' \</span></pre>
|
|
4139
4168
|
Shell
|
|
4140
4169
|
<pre data-language="cURL">curl --request DELETE \
|
|
4141
|
-
--url '{{rootUrl}}{{entityName}}s/<span class="place-holder">id</span>' \<span style="display: {{tokenDisplay}}">
|
|
4142
|
-
--header 'Token:
|
|
4170
|
+
--url '<span class="root-url">{{rootUrl}}</span>{{entityName}}s/<span class="place-holder">id</span>' \<span style="display: {{tokenDisplay}}">
|
|
4171
|
+
--header 'Token: {<span>{</span>TOKEN}}' \</span></pre>
|
|
4143
4172
|
</div>
|
|
4144
4173
|
</script>
|
|
4145
4174
|
<div class="mushroom-docs-template" id="template-codeSnippets-deleteOne-Java">
|
|
@@ -4257,7 +4286,7 @@ catch (Exception ex)
|
|
|
4257
4286
|
<div class="http-snippet">
|
|
4258
4287
|
Xóa nhật một {{entityName}}
|
|
4259
4288
|
<pre data-language="http">DELETE {{rootUrlPath}}{{entityName}}s/<span class="place-holder">id</span> HTTP/1.1
|
|
4260
|
-
Host: {{domain}}
|
|
4289
|
+
Host: <span class="domain">{{domain}}</span>
|
|
4261
4290
|
Content-Type: application/json<span style="display: {{tokenDisplay}}">
|
|
4262
4291
|
Token: your token</span>
|
|
4263
4292
|
|
|
@@ -4268,14 +4297,14 @@ Token: your token</span>
|
|
|
4268
4297
|
<div class="curl-snippet">
|
|
4269
4298
|
cURL
|
|
4270
4299
|
<pre data-language="cURL">curl -X DELETE \
|
|
4271
|
-
'{{rootUrl}}{{entityName}}s/<span class="place-holder">id</span>' \
|
|
4300
|
+
'<span class="root-url">{{rootUrl}}</span>{{entityName}}s/<span class="place-holder">id</span>' \
|
|
4272
4301
|
-H 'Content-Type: application/json' \ <span style="display: {{tokenDisplay}}">
|
|
4273
|
-
-H 'Token:
|
|
4302
|
+
-H 'Token: {<span>{</span>TOKEN}}' \</span>
|
|
4274
4303
|
-d '[id1, id2, idn]'</pre>
|
|
4275
4304
|
Shell
|
|
4276
4305
|
<pre data-language="cURL">curl --request DELETE \
|
|
4277
4306
|
--url '{{rootUrlPath}}{{entityName}}s/<span class="place-holder">id</span>' \<span style="display: {{tokenDisplay}}">
|
|
4278
|
-
--header 'Token:
|
|
4307
|
+
--header 'Token: {<span>{</span>TOKEN}}' \</span>
|
|
4279
4308
|
--data '[id1, id2, idn]'</pre>
|
|
4280
4309
|
</div>
|
|
4281
4310
|
</script>
|
|
@@ -4396,14 +4425,14 @@ catch (Exception ex)
|
|
|
4396
4425
|
<div class="http-snippet">
|
|
4397
4426
|
Code tham khảo:
|
|
4398
4427
|
<pre data-language="http">{{httpMethod}} {{rootUrlPath}}{{entityName}}s/{{httpMethod}}<span class="place-holder">?param1=value1&param2=value2</span> HTTP/1.1
|
|
4399
|
-
Host: {{domain}}
|
|
4428
|
+
Host: <span class="domain">{{domain}}</span>
|
|
4400
4429
|
Content-Type: application/json<span style="display: {{tokenDisplay}}">
|
|
4401
4430
|
Token: your token</span>
|
|
4402
4431
|
|
|
4403
4432
|
<span class="place-holder">BODY DATA</span></pre>
|
|
4404
4433
|
<pre data-language="http"><span style="display: {{bodyDisplay}}">TRƯỜNG HỢP CÓ BODY DATA</span>
|
|
4405
4434
|
POST {{rootUrlPath}}{{entityName}}s/{{httpMethod}}<span class="place-holder">?param1=value1&param2=value2</span> HTTP/1.1
|
|
4406
|
-
Host: {{domain}}
|
|
4435
|
+
Host: <span class="domain">{{domain}}</span>
|
|
4407
4436
|
Content-Type: application/json
|
|
4408
4437
|
X-HTTP-Method-Override: {{httpMethod}}<span style="display: {{tokenDisplay}}">
|
|
4409
4438
|
Token: your token</span>
|
|
@@ -4412,7 +4441,7 @@ Token: your token</span>
|
|
|
4412
4441
|
<span style="display: {{noBodyDisplay}}">
|
|
4413
4442
|
TRƯỜNG HỢP KHÔNG CÓ BODY DATA
|
|
4414
4443
|
GET {{rootUrlPath}}{{entityName}}s/{{httpMethod}}<span class="place-holder">?param1=value1&param2=value2</span> HTTP/1.1
|
|
4415
|
-
Host: {{domain}}
|
|
4444
|
+
Host: <span class="domain">{{domain}}</span>
|
|
4416
4445
|
Content-Type: application/json
|
|
4417
4446
|
X-HTTP-Method-Override: {{httpMethod}}<span style="display: {{tokenDisplay}}">
|
|
4418
4447
|
Token: your token</span></span>
|
|
@@ -4423,15 +4452,15 @@ Token: your token</span></span>
|
|
|
4423
4452
|
<div class="curl-snippet">
|
|
4424
4453
|
cURL
|
|
4425
4454
|
<pre data-language="cURL">curl -X {{httpMethod}} \
|
|
4426
|
-
'{{rootUrl}}{{entityName}}s/{{httpMethod}}<span class="place-holder">?param1=value1&param2=value2</span>' \
|
|
4455
|
+
'<span class="root-url">{{rootUrl}}</span>{{entityName}}s/{{httpMethod}}<span class="place-holder">?param1=value1&param2=value2</span>' \
|
|
4427
4456
|
-H 'Content-Type: application/json' \ <span style="display: {{tokenDisplay}}">
|
|
4428
|
-
-H 'Token:
|
|
4457
|
+
-H 'Token: {<span>{</span>TOKEN}}' \</span>
|
|
4429
4458
|
-d 'BODY DATA IF ANY'
|
|
4430
4459
|
</pre>
|
|
4431
4460
|
Shell
|
|
4432
4461
|
<pre data-language="cURL">curl --request {{httpMethod}} \
|
|
4433
|
-
--url '{{rootUrl}}{{entityName}}s/{{httpMethod}}<span class="place-holder">?param1=value1&param2=value2</span>' \<span style="display: {{tokenDisplay}}">
|
|
4434
|
-
--header 'Token:
|
|
4462
|
+
--url '<span class="root-url">{{rootUrl}}</span>{{entityName}}s/{{httpMethod}}<span class="place-holder">?param1=value1&param2=value2</span>' \<span style="display: {{tokenDisplay}}">
|
|
4463
|
+
--header 'Token: {<span>{</span>TOKEN}}' \</span>
|
|
4435
4464
|
--data 'BODY DATA IF ANY'</pre>
|
|
4436
4465
|
</div>
|
|
4437
4466
|
</script>
|
|
@@ -4555,7 +4584,7 @@ catch (Exception ex)
|
|
|
4555
4584
|
<script type="text/mushroom-docs-template" class="mushroom-docs-template" id="template-codeSnippets-view-HTTP">
|
|
4556
4585
|
<div class="http-snippet">
|
|
4557
4586
|
<pre data-language="http">GET {{rootUrlPath}}{{entityName}}s/views/{{viewName}}{{parameters:html}} HTTP/1.1
|
|
4558
|
-
Host: {{domain}}
|
|
4587
|
+
Host: <span class="domain">{{domain}}</span>
|
|
4559
4588
|
Content-Type: application/json<span style="display: {{tokenDisplay}}">
|
|
4560
4589
|
Token: your token</span></pre>
|
|
4561
4590
|
</div>
|
|
@@ -4564,13 +4593,13 @@ Token: your token</span></pre>
|
|
|
4564
4593
|
<div class="curl-snippet">
|
|
4565
4594
|
cURL
|
|
4566
4595
|
<pre data-language="cURL">curl -X GET \
|
|
4567
|
-
'{{rootUrl}}{{entityName}}s/views/{{viewName}}{{parameters:html}}' \
|
|
4596
|
+
'<span class="root-url">{{rootUrl}}</span>{{entityName}}s/views/{{viewName}}{{parameters:html}}' \
|
|
4568
4597
|
-H 'Content-Type: application/json'<span style="display: {{tokenDisplay}}"> \
|
|
4569
|
-
-H 'Token:
|
|
4598
|
+
-H 'Token: {<span>{</span>TOKEN}}'</span></pre>
|
|
4570
4599
|
Shell
|
|
4571
4600
|
<pre data-language="cURL">curl --request GET \
|
|
4572
|
-
--url '{{rootUrl}}{{entityName}}s/views/{{viewName}}{{parameters:html}}'<span style="display: {{tokenDisplay}}"> \
|
|
4573
|
-
--header 'Token:
|
|
4601
|
+
--url '<span class="root-url">{{rootUrl}}</span>{{entityName}}s/views/{{viewName}}{{parameters:html}}'<span style="display: {{tokenDisplay}}"> \
|
|
4602
|
+
--header 'Token: {<span>{</span>TOKEN}}'</span></pre>
|
|
4574
4603
|
</div>
|
|
4575
4604
|
</script>
|
|
4576
4605
|
<div class="mushroom-docs-template" id="template-codeSnippets-view-Java">
|