ohmage / server

The ohmage server application.
37 stars 25 forks source link

Class read does not raise error #864

Closed jeroen closed 8 years ago

jeroen commented 8 years ago

The /app/class/read api returns success when you use a non-existing urn. Not sure if this is intended but it makes it impossible to see if a campaign really exists.

hongsudt commented 8 years ago

class read is acting like class search.. It queries the required entries based on the specified parameters. If none of the criteria is met, it returns a success status with an empty object. This seems to be the behavior of most of the read apis..

stevenolen commented 8 years ago

Since this is how many of the 2.x apis operate, it's best to leave as is for backwards compatibility. Closing.