Skip to content

Instantly share code, notes, and snippets.

@emiralp
Created July 18, 2014 20:18
Show Gist options
  • Save emiralp/d3746960e036a92a10af to your computer and use it in GitHub Desktop.
Save emiralp/d3746960e036a92a10af to your computer and use it in GitHub Desktop.

USERS

/api/users/sign_up
	username				(Required)
	email					(Required)
	password				(Required)
	password_confirmation	(Required)
	
/api/users/sign_in
	username_or_email		(Required)
	password				(Required)

/api/users/sign_out
	
/api/users/retrieve
	email					(Required)
	
/api/users/resend
	email					(Required)
	
/api/users/update
	password
	password_confirmation
	username
	name
	surname
	gender
	bio

/api/users/profile/:username
	No parameters required.

/api/users/:username/playlists
	No parameters required.

/api/users/my_comments
	No parameters required.

/api/users/remove_comment
	comment_id				(Required)

##################################################################

TRACKS

/api/tracks/search
	genre or track_id		(Required)

/api/tracks/:track_id/like
	No parameters required.

/api/tracks/:track_id/unlike
	No parameters required.

/api/tracks/likes
	No parameters required.

/api/tracks/:track_id/add_comment
	body					(Required)
	sec						(Required)

/api/tracks/:track_id/comments
	No parameters required.

##################################################################

PLAYLISTS

/api/playlists/new
	name					(Required)
	description				(Required)

/api/playlists
	username				(Required)
	playlist_name			(Required)

/api/playlists/:playlist_name/update
	name					
	description				
	
/api/playlists/:playlist_name/add/:track_id
	No parameters required.

/api/playlists/:playlist_name/remove/:track_id
	No parameters required.

/api/playlists/:playlist_name/destroy
	No parameters required.

##################################################################

LAYOUTS

/api/layouts/index
	No parameters required.

##################################################################

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment