Skip to content
MarkPfennig edited this page Sep 3, 2014 · 2 revisions

Transaction Lists

simple lists

["http://jurassic.bitmark.co/tx/845674#tx", "http://jurassic.bitmark.co/tx/845675#tx", ...]

object lists

[{
  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: "",
  }
},
...
]

Provide ways to lookup or filter by property

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?

By context

How would we find all marks where context=https://github.com/melvincarvalho/markbot/commit/1e45681164d7423fa6585ea43c57bca4f1032069 or context=http://dogshop.com/all-products#dog-basket?