Datafable / epu-index

EPU index
http://www.applieddatamining.com/cms/?q=content/economic-policy-uncertainty-index
1 stars 0 forks source link

REST endpoint for getting articles #25

Closed bartaelterman closed 9 years ago

bartaelterman commented 9 years ago

The users need to be able to fetch newest articles for their classification algorithms. They should be able to get these articles using the REST interface with a GET method and after authentication. The endpoint should accept two parameters from and to both accepting dates in iso format (yyyy-mm-dd). The articles returned should include articles on the from and the to date.

The resulting data should look like:

{
    "records": [
        {
            "id": 3, # database id. used for updating (see issue #19)
            "title": "this is the title",
            "intro": "intro text",
            "text": "this is text",
            "published_at": datetime, # as yyyy-mm-dd hh:mm:ss
            "url": url,
            "journal": "the journal"
        },
        ...
    ]
}
peterdesmet commented 9 years ago

I assume your closing this as the actual requirements are recorded in #46?

bartaelterman commented 9 years ago

Yes. This endpoint was meant to be used by matlab scripts and required authentication. I consider the one documented in #46 a different endpoint.