@@ -160,7 +160,7 @@ JavaScript:
160160
161161CURL:
162162``` shell
163- curl -i -H " Accept: application/json" -H " X_REST_USERNAME : admin@restuser" -H " X_REST_PASSWORD : admin@Access" \
163+ curl -i -H " Accept: application/json" -H " X-REST-USERNAME : admin@restuser" -H " X-REST-PASSWORD : admin@Access" \
164164http://my-site.com/api/work
165165```
166166
@@ -212,7 +212,7 @@ JavaScript:
212212
213213CURL:
214214``` shell
215- curl -i -H " Accept: application/json" -H " X_REST_USERNAME : admin@restuser" -H " X_REST_PASSWORD : admin@Access" \
215+ curl -i -H " Accept: application/json" -H " X-REST-USERNAME : admin@restuser" -H " X-REST-PASSWORD : admin@Access" \
216216http://my-site.com/api/work/1
217217```
218218
@@ -256,7 +256,7 @@ JavaScript:
256256
257257CURL:
258258``` shell
259- curl -i -H " Accept: application/json" -H " X_REST_USERNAME : admin@restuser" -H " X_REST_PASSWORD : admin@Access" \
259+ curl -i -H " Accept: application/json" -H " X-REST-USERNAME : admin@restuser" -H " X-REST-PASSWORD : admin@Access" \
260260http://my-site.com/api/work? limit=10& offset=30
261261```
262262
@@ -309,7 +309,7 @@ JavaScript:
309309
310310CURL:
311311``` shell
312- curl -i -H " Accept: application/json" -H " X_REST_USERNAME : admin@restuser" -H " X_REST_PASSWORD : admin@Access" \
312+ curl -i -H " Accept: application/json" -H " X-REST-USERNAME : admin@restuser" -H " X-REST-PASSWORD : admin@Access" \
313313http://my-site.com/api/work? sort=%5B%7B%22property%22%3A%22title%22%2C+%22direction%22%3A%22DESC%22%7D%2C+%7B%22property%22%3A%22create_time%22%2C+%22direction%22%3A%22ASC%22%7D%5D
314314```
315315
@@ -402,7 +402,7 @@ var postData = {
402402
403403CURL:
404404``` shell
405- curl -l -H " Accept: application/json" -H " X_REST_USERNAME : admin@restuser" -H " X_REST_PASSWORD : admin@Access" \
405+ curl -l -H " Accept: application/json" -H " X-REST-USERNAME : admin@restuser" -H " X-REST-PASSWORD : admin@Access" \
406406-X POST -d ' {"title": "title31", "author_id": "31", "content": "content31", "create_time": "2013-08-20 09:23:14"}' http://my-site.com/api/work
407407```
408408
@@ -454,7 +454,7 @@ var postData = {
454454
455455CURL:
456456``` shell
457- curl -l -H " Accept: application/json" -H " X_REST_USERNAME : admin@restuser" -H " X_REST_PASSWORD : admin@Access" \
457+ curl -l -H " Accept: application/json" -H " X-REST-USERNAME : admin@restuser" -H " X-REST-PASSWORD : admin@Access" \
458458-X PUT -d ' {"id": "31", "title": "title31", "author_id": "31", "content": "content31", "create_time": "2013-08-20 09:23:14"}' http://my-site.com/api/work/31
459459```
460460
@@ -497,7 +497,7 @@ JavaScript:
497497
498498CURL:
499499``` shell
500- curl -l -H " Accept: application/json" -H " X_REST_USERNAME : admin@restuser" -H " X_REST_PASSWORD : admin@Access" \
500+ curl -l -H " Accept: application/json" -H " X-REST-USERNAME : admin@restuser" -H " X-REST-PASSWORD : admin@Access" \
501501" X-HTTP-Method-Override: DELETE" -X DELETE http://my-site.com/api/work/1
502502
503503```
0 commit comments