-
Notifications
You must be signed in to change notification settings - Fork 1
API Model
MarkPfennig edited this page Sep 3, 2014
·
2 revisions
["http://jurassic.bitmark.co/tx/845674#tx", "http://jurassic.bitmark.co/tx/845675#tx", ...]
[{
id: "http://jurassic.bitmark.co/tx/845674#tx",
source: "http://jurassic.bitmark.co/user/d7423f#persona",
destination: "http://jurassic.bitmark.co/user/5ea43c#persona",
amount: "12.5697",
unit: "http://schema.bitmark.co/units#mark",
when: "2014-09-03T16:29:31Z",
why: {
context: "https://github.com/melvincarvalho/markbot/commit/1e45681164d7423fa6585ea43c57bca4f1032069",
description: "",
}
},
...
]
Alternative approaches to the api exist:
Query String:
http://jurassic.bitmark.co/api/?source=http://jurassic.bitmark.co/user/d7423f#persona
In the data, where the following returns json (content negotiation over accept):
http://jurassic.bitmark.co/user/d7423f
Logical path extensions
http://jurassic.bitmark.co/user/d7423f/sent
http://jurassic.bitmark.co/user/d7423f/received
With optional query strings
http://jurassic.bitmark.co/user/d7423f/sent?limit=50
http://jurassic.bitmark.co/user/d7423f/sent?since=when
Other?
How would we find all marks where context=https://github.com/melvincarvalho/markbot/commit/1e45681164d7423fa6585ea43c57bca4f1032069
or context=http://dogshop.com/all-products#dog-basket
?