openmhealth / omh-dsu-ri

An application for storing mobile health data and authorizing access to it.
http://www.openmhealth.org/documentation/#/store-data/storage-overview
Apache License 2.0
39 stars 32 forks source link

Invalid Token #6

Closed antoine-gagne closed 8 years ago

antoine-gagne commented 8 years ago

Hi, I saw the ticket created by Arutchelvi90 and it helped me get over the same problem. Looking back to see where it comes from, it seems like the example code provided instructs to insert a row with dataPoints as a value for resource_ids. Since everywhere else it seems like dataPoint (without s) is used, I am guessing that the example insert contains a typo?

emersonf commented 8 years ago

Thanks for reporting @antoine-gagne. I'll reconcile the API RAML, the examples, and the code and post an update later this week.

emersonf commented 8 years ago

So that bug was fixed last May, but we never cut a release. Most of the attention was being put on other projects, and we've only recently given this storage endpoint some attention.

The correct resource ID is dataPoints (plural), the typo is in OAuth2Properties.java. The next release, due tomorrow, will fix this.

emersonf commented 8 years ago

This is fixed in release 0.1.0. Thanks for reporting!