/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)
##################################################################
/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.
##################################################################
/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.
##################################################################
/api/layouts/index
No parameters required.
##################################################################
I have some questions: I have tried
curl -X POST -d "username_or_email=DLion" -d "password=password123" "https://cmd.fm/api/users/sign_in"
And I received this:
Why ?
I tried using another way and I received:
What's wrong with my request ?