Closed deanmarano closed 11 years ago
Closing this. I thought it would be possible to use these endpoints as an API, but the current login scheme does not allow that. I'll look at other possibilities for now.
Yeah, the JSON API is intended to be used as a back-end for Ajax-based tables and the like. If you want to build an API for external use, you will need to modify your authentication scheme to support some kind of API-based authentication.
Looking through the controller code documentation, it appears that occurrences should respond to json:
https://github.com/SquareSquash/web/blob/master/app/controllers/occurrences_controller.rb#L232
However this wasn't fully implemented. Here's the minor code change and an accompanying test.
Thanks! Dean