https://github.com/gugod/anyblob
https://github.com/gugod/anyblob
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gugod/anyblob
- Owner: gugod
- Created: 2011-07-14T03:03:10.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-07-14T07:23:10.000Z (almost 14 years ago)
- Last Synced: 2024-10-18T07:44:47.576Z (8 months ago)
- Language: Perl
- Size: 102 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
-*- org -*-
* Spec (rough)
** Term
- blob := arbitrary bit sequence of any size.
- blobref (or simply ref) := "sha1-" . sha1(blob)** API
*** To check the missing of present of blobRequest:
HEAD "/blobs/${ref}"
Response when found:
Status: 200
(No HTTP body)Response when not found
Status: 400
*** To retrieve blob
Request:
GET "/blobs/$ref"
Response when found:
Status: 200
HTTP Body: the blobResponse when not found:
Status: 404
*** To store blob
Request:
PUT "/blobs/${ref}"
post body is the blobResponse when ref is valid
Status: 200
Response when ref is not valid
Status: 400
*** To synchronize betweet blob server
GET "/blobs.json"
- list of blobrefs as an array of str, encoded to json.*** Other
POST "/blobs"
- always 405