-
Notifications
You must be signed in to change notification settings - Fork 0
/
Template.txt
61 lines (49 loc) · 1.37 KB
/
Template.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Pitch-Chordia json template using POSTMAN
GET: song - to view the song that you uploaded
GET: playlist - to view the playlist that you created with the song details that you put in that playlist (filter example: http://localhost/Pitch-Chordia/playlist/1)
|| if your playlist is just one word (filter example: http://localhost/Pitch-Chordia/playlist/Vibe)
GET: log - to view the log files.
POST: register
{
"firstname":
"lastname":
"username":
"password":
}
POST: login
{
"username":
"password":
}
POST: song (form-data) - to upload a song with their details
{
title (TEXT)
artist (TEXT)
chord_lyrics (TEXT)
file (FILE) //for mp3_path
duration (TEXT)
isdeleted (TEXT)
}
POST: playlist - to create a playlist
{
"playlist_name":
}
POST: song-playlist - to add a song into the specific playlist (put the playlist_name where you want to input the song)
{
"playlist_name":
"title":
"artist":
}
PATCH: song/1 - to update the song details (only the following fields are allowed to patch)
{
"title":
"artist":
"chord_lyrics":
}
PATCH: playlist/1 - to update the playlist_name (only the playlist_name are allowed field to patch)
{
"playlist_name":
}
first GET song then view the list of songs that you uploaded (and view specifically the song_id) that you want to delete.
ARCHIVE: song/1 - to archive the song
ARCHIVE: playlist/1