diff options
author | Milo Casagrande <milo.casagrande@linaro.org> | 2014-10-31 16:27:37 +0100 |
---|---|---|
committer | Milo Casagrande <milo.casagrande@linaro.org> | 2014-10-31 16:27:37 +0100 |
commit | d7c6aa85ce9e122c57b019ae7a814507d7a3ed6c (patch) | |
tree | 91ff77b27cdb83a275acdde0fd0ce4fbaac5fef1 | |
parent | e1a3fea4c88ff4edaf267c8c597b7284573e2df3 (diff) |
Update README with correct API URLs.
Change-Id: I7aa64d4ff295d2d20ac43c624c95898f3a061d49
-rw-r--r-- | README | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -68,7 +68,7 @@ Create Token To create a token at the beginning: - curl -X POST -H "Content-Type: application/json" -H "Authorization: $MASTER_KEY" -d "{"email": "you@example.net", "admin": 1}" localhost:8888/api/token + curl -X POST -H "Content-Type: application/json" -H "Authorization: $MASTER_KEY" -d "{"email": "you@example.net", "admin": 1}" localhost:8888/token The command will return the token created. Use it to create new tokens. The master key should be used only the first time. @@ -76,29 +76,29 @@ The master key should be used only the first time. GET --- - curl localhost:8888/api/job - curl localhost:8888/api/defconfig - curl localhost:8888/api/boot - curl localhost:8888/api/count + curl localhost:8888/job + curl localhost:8888/defconfig + curl localhost:8888/boot + curl localhost:8888/count - curl localhost:8888/api/job/$JOB_ID - curl localhost:8888/api/defconfig/$DEFCONF_ID + curl localhost:8888/job/$JOB_ID + curl localhost:8888/defconfig/$DEFCONF_ID - curl localhost:8888/api/job?limit=40 - curl localhost:8888/api/job?limit=40&skip=20 + curl localhost:8888/job?limit=40 + curl localhost:8888/job?limit=40&skip=20 POST ---- POST requests work for: - /api/job - /api/boot + /job + /boot This command will tell the application to parse the directory located at 'stable/v3.12.14' and import everything there. - curl -X POST -H "Content-Type: application/json" -H "Authorization: foo" -d '{"job": "stable", "kernel": "v3.12.14"}' localhost:8888/api/job + curl -X POST -H "Content-Type: application/json" -H "Authorization: foo" -d '{"job": "stable", "kernel": "v3.12.14"}' localhost:8888/job The content of the `Authorization` is not important at the moment. All requests without that header will be discarded though. @@ -106,7 +106,7 @@ without that header will be discarded though. DELETE ------ - curl -X DELETE -H "Authorization: foo" localhost:8888/api/job/job-id + curl -X DELETE -H "Authorization: foo" localhost:8888/job/job-id Manul import of all data ------------------------ |