REST API #15
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
To enable third party use of the data generated within Predi, there should be a REST API.
This API should at least give access to current predictions and an overview of prices over time.
This article explains how to do this: http://www.meteorpedia.com/read/REST_API I haven't read it yet.
Reassigned to @robert
Using iron:router to create simple read REST API that reflects Mongo Collections!
Love it! Remember writing hours :)
Note that I've introduced an extra level of collections and moved some fields (according to #5). There is now Markets, Contractsets and Contracts. Most fields that used to live in the Market collection now lives in Contractsets.
Also, there is tags on users and markets indicating which markets each user will have access to. I think these tags might be of interest to users of the REST API.
These changes still live only in the adminui branch. I could merge them into the develop branch if you want. I think everything is working about as good as it used to now, but the design is totally messed up.
mockdata.coffee is a good place to look to get an idea on the available fields en each collection.
Another change that has been committed is translations. I guess that could be part of the REST API also. If no language is given TAPi18n insists on defaulting to English, which I suspect the Swiss will not like.
Fra nerdouten
Liste av marked
Kontrakter.
Prishistorikk på kontrakter i kontraktsett
Nåværende pris og historikk kjørt gjennom magisk omregningsalgoritme som samfunnsviterne har laget
Brukerrangering
Reassigned to @kjetil
Status changed to closed by commit 5077b6
Status changed to reopened
ach. reopening. Still some weirdness. Remember to filter out mirror contracts.
As an example, this request:
Right now produces this:
Status changed to closed by commit d7b02c