Skip to content

Instantly share code, notes, and snippets.

@emiralp
Last active March 12, 2018 10:33
Show Gist options
  • Save emiralp/010e3cc7119ab4a39d4b to your computer and use it in GitHub Desktop.
Save emiralp/010e3cc7119ab4a39d4b to your computer and use it in GitHub Desktop.
cmd.fm api v.1 (beta)

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 & GENRES

/api/genres
	No parameters required.
	
/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.

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

@mrsum
Copy link

mrsum commented Jul 29, 2015

Is CORS disabled?

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