Skip to content

Commit 7b9c625

Browse files
committed
typo
1 parent 953dbbe commit 7b9c625

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

readme.markdown

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ JavaScript:
160160

161161
CURL:
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"\
164164
http://my-site.com/api/work
165165
```
166166

@@ -212,7 +212,7 @@ JavaScript:
212212

213213
CURL:
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"\
216216
http://my-site.com/api/work/1
217217
```
218218

@@ -256,7 +256,7 @@ JavaScript:
256256

257257
CURL:
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"\
260260
http://my-site.com/api/work?limit=10&offset=30
261261
```
262262

@@ -309,7 +309,7 @@ JavaScript:
309309

310310
CURL:
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"\
313313
http://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

403403
CURL:
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

455455
CURL:
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

498498
CURL:
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

Comments
 (0)