SquareSquash / web

Squash’s front-end and API host.
http://www.squash.io
Apache License 2.0
963 stars 135 forks source link

Displaying of individual occurrences in JSON. #96

Closed deanmarano closed 11 years ago

deanmarano commented 11 years ago

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

deanmarano commented 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.

RISCfuture commented 11 years ago

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.