85 Commits

Author SHA1 Message Date
Thibault Jouan
ba3c0380d0 Accept API authentication with keys token 2015-05-06 03:14:42 +00:00
Thibault Jouan
0f1f7106b2 Implement Key.authenticate 2015-05-06 03:14:42 +00:00
Thibault Jouan
78f79c4c34 Add API authenticated ping resource 2015-05-06 03:14:42 +00:00
Thibault Jouan
6e6de7407d Fix typo in keys/show view 2015-05-05 02:33:05 +00:00
Thibault Jouan
763c9789ec Allow user to creates named auth keys with token 2015-05-05 02:31:30 +00:00
Thibault Jouan
fedf565389 Accept SHA256 as identifier for API playlists/show 2015-05-05 02:27:29 +00:00
Thibault Jouan
464a16e964 Fix API sounds/show action 2015-05-05 00:55:42 +00:00
Thibault Jouan
7b44e90814 Change API ping/pong to return a boolean 2015-05-05 00:03:57 +00:00
Thibault Jouan
e647aa257f Configure standard rails javascript behavior 2015-05-04 23:01:37 +00:00
Thibault Jouan
ef0b9053f1 Return new location in API playlists create 2015-05-04 03:41:28 +00:00
Thibault Jouan
223a6e7a85 Handle save error in API playlists/update 2015-05-04 02:14:37 +00:00
Thibault Jouan
5f993e4bd3 Return errors in API playlists/create 2015-05-04 01:01:37 +00:00
Thibault Jouan
8f8cdaec79 Return 422 when API playlists cannot be saved 2015-05-04 00:59:00 +00:00
Thibault Jouan
77be82a19f Return 201 Created in API playlists/create 2015-05-04 00:54:17 +00:00
Thibault Jouan
7a28b01287 Refactor playlists views 2015-05-04 00:53:08 +00:00
Thibault Jouan
689fe2f4dd Implement API playlists/destroy 2015-05-03 23:35:53 +00:00
Thibault Jouan
d03007c99f Implement API playlists/update 2015-05-03 23:23:41 +00:00
Thibault Jouan
6c0736da74 Allow unauthenticated requests to API ping 2015-05-03 22:42:15 +00:00
Thibault Jouan
db7de0c038 Accept JSON requests more liberally in API 2015-05-03 20:15:48 +00:00
Thibault Jouan
abb20c89ad Prevent JSON filter usage for CORS API requests 2015-05-03 19:52:54 +00:00
Thibault Jouan
5a1082e93f Refactor API rabl views 2015-05-03 19:05:41 +00:00
Thibault Jouan
bdfd0edff0 Include roots for resources in rabl index views 2015-05-03 19:03:16 +00:00
Thibault Jouan
fe22556f93 Refactor API JSON filter 2015-05-03 18:11:29 +00:00
Thibault Jouan
8b226998a4 Refactor controllers 2015-05-02 00:24:30 +00:00
Thibault Jouan
6001cd2e79 Implement tracks/show in AP 2015-05-02 00:11:52 +00:00
Thibault Jouan
aaca5bf1d9 Remove .html from HAML views paths (except layout) 2015-05-02 00:06:15 +00:00
Thibault Jouan
57ea6ca0df Ensure errors are always returned in JSON in API 2015-05-01 22:17:23 +00:00
Thibault Jouan
5b9d36cb39 Ensure AR not found errors are handled in API 2015-05-01 22:15:30 +00:00
Thibault Jouan
cd73a588b0 Handle 404 not found error in API 2015-05-01 20:07:18 +00:00
Thibault Jouan
b3cfa88bb9 Implement playlists/show in API 2015-05-01 20:06:20 +00:00
Thibault Jouan
8e3955a97b Refuse non-JSON queries on API 2015-05-01 17:47:44 +00:00
Thibault Jouan
c0b2621b2f Implement ping/pong endpoint in API 2015-05-01 16:56:55 +00:00
Thibault Jouan
5e1757aff9 Improve tracks CRUD
* Add index, edit and update action;
* Add _form partial;
* Add link to tracks/index in nav;
* Refactor specs.
2015-05-01 12:09:29 +00:00
Thibault Jouan
b25fbaac5e Remove last playlists and tracks from home 2015-05-01 11:03:34 +00:00
Thibault Jouan
4b0f4d391f Implement user sign out (destroy current session) 2015-05-01 10:55:32 +00:00
Thibault Jouan
2f44a2265e Add navigation in layout header as a list 2015-04-30 13:54:02 +00:00
Thibault Jouan
4a015d461a Prevent exception when fetching current user 2015-04-30 13:36:48 +00:00
Thibault Jouan
3e5c29b635 Configure CSRF protection with exceptions
rails 4 introduced different strategies, but we never configured one
so it would default to a null session.
2015-04-30 11:43:22 +00:00
Thibault Jouan
b13efc5a4c Improve how ruby features are required
* Don't require bcrypt explicitly (done by bundler);
* Regroup require calls in application configuration.
2015-04-30 11:28:07 +00:00
Thibault Jouan
3b733c349e Fix coding standards in application files 2015-04-30 08:52:00 +00:00
Thibault Jouan
1efb3103d9 Remove respond_to usage in playlists controller
This feature was deprecated by rails.
2015-04-29 11:17:29 +00:00
Thibault Jouan
4c6adc6927 Use new "strong parameters" from rails4 2014-04-03 02:20:37 +00:00
Thibault Jouan
e6f6475705 Fix coding standards in application 2014-04-01 19:02:23 +00:00
Thibault Jouan
aca19eb51f Fix coding standards: bang operator 2014-04-01 18:55:46 +00:00
Thibault Jouan
da96c4814a Use ruby 2.x hash syntax 2014-04-01 10:48:18 +00:00
Thibault Jouan
bd39be32c5 Make Sound#file attr_accessible 2014-04-01 07:48:47 +00:00
Thibault Jouan
40f4ced3b8 Add inflection for API acronym 2013-06-30 21:37:30 +00:00
Thibault Jouan
9b9e17e591 Implement track/index action for API 2012-05-03 21:11:03 +00:00
Thibault Jouan
fc1ec120ae Add sound/show action (FIXME: need tests!) 2012-05-03 21:11:00 +00:00
Thibault Jouan
9ccd1e10be Allow Content-Length header to be received and sent in CORS requests 2012-05-03 21:03:11 +00:00