57 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Thibault Jouan
b40b4d4df3 Fix use of nil in CORS filter when request doesn't have an Origin header 2012-05-03 21:03:11 +00:00
Thibault Jouan
df6d4991f8 Implement playlists/create action for API 2012-03-19 02:23:48 +00:00
Thibault Jouan
10a8e1f094 Remove v0 version namespacing for API 2012-03-18 23:16:43 +00:00
Thibault Jouan
5dfafdcc46 Implement sessions/create in JSON API 2012-03-18 17:30:36 +00:00
Thibault Jouan
499b06c9e5 Allow API consumer to send credentials on cross-origin requests 2012-03-13 21:12:24 +00:00
Thibault Jouan
196ea16a94 Use RABL to build JSON responses given by API 2012-03-11 23:31:01 +00:00
Thibault Jouan
6379da88e2 Implement Cross-Origin Resource Sharing:
* Add Api::ApplicationController
* Route OPTION requests (CORS preflight) to API application controller
* Filter all API requests through #cor_filter in API application
  controller
2012-03-11 22:19:42 +00:00
Thibault Jouan
88d3242843 Implements playlists/index action in JSON API 2012-02-26 11:33:43 +00:00
Thibault Jouan
27550fd14e Save track files in new Sound model:
* Consolidate migrations
* Add Sound model. Each sound can belong to a track and contains
  informations about one sound file.
2011-09-20 17:43:20 +00:00
Thibault Jouan
f49a5a3f67 Update to rails 3.1.0
* Bump rails version to 3.1.0 in Gemfile
* Update config files
* Fix bcrypt monkey patch for specs
* Fix TracksController
* Replace track streaming with track download
* Remove assets from application layout
2011-09-15 16:10:21 +00:00
Thibault Jouan
1057cab009 Implement user registration feature
* Add users/new action and view
* Add users/create action
* Add link to sign up in sign in page
2011-09-07 18:36:06 +00:00
Thibault Jouan
7fad9e0402 Associate a user to his playlists 2011-08-30 16:53:47 +00:00
Thibault Jouan
4f66db2682 Refactor code related to authentication:
* User model
* SessionsController
2011-08-29 20:23:20 +00:00
Thibault Jouan
c023a071d0 Fix playlist/update action behaviour with invalid params 2011-08-24 20:27:30 +00:00
Thibault Jouan
7bf4d4c5f9 Add authentication and User model
* Add User model
* Add SessionsController
* Add password authentication on User
* Request authentication for all actions except sign in
* Add some helpers for ApplicationController
* Update features to work with mandatory authentication
2011-08-06 23:04:36 +00:00
Thibault Jouan
46abe07268 Add latest added tracks list on the home page 2011-07-27 22:10:22 +00:00
Thibault Jouan
b39bc2d6da Add home page with playlists list and link to add a track 2011-07-27 19:40:30 +00:00