-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Johan Dahlberg
committed
Apr 11, 2016
1 parent
70c655c
commit e7912c5
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
Arteria checksum | ||
================= | ||
|
||
A self contained (Tornado) REST service that checks md5 checksums. | ||
|
||
Trying it out | ||
------------- | ||
|
||
# install dependencies | ||
pip install -r requirements/prod . | ||
|
||
|
||
Try running it: | ||
|
||
checksum-ws --config config/ --port 8080 --debug | ||
|
||
And then you can find a simple api documentation by going to: | ||
|
||
http://localhost:8888/api/1.0 | ||
|
||
|
||
REST endpoints | ||
-------------- | ||
|
||
Start check-summing by: | ||
|
||
curl -X POST -w '\n' --data '{"path_to_md5_sum_file": "<path_to_checksum_file>"}' http://localhost:8080/api/1.0/start/<runfolder> | ||
|
||
Please note that it's necessary for the file containing the md5sums to be placed within the runfolder you want to | ||
test. | ||
|
||
|
||
You can build check the status of your job by using: | ||
|
||
curl -w '\n' http://localhost:8080/api/1.0/status/<jobid or all> | ||
And you can stop a job by: | ||
|
||
curl -w '\n' http://localhost:8080/api/1.0/stop/<jobid or all> | ||
|
||
Finally if you want to know the version of the service running: | ||
|
||
curl -w '\n' http://localhost:8080/api/1.0/version |