-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
29 lines (26 loc) · 1.59 KB
/
README
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
pottorest
=====================================
This is a simple RESTful server using the Play Framework 2.2.
Usage:
[http://localhost:9000/]
GET artists - lists all artists
GET artists/{id} - list artist of id
GET labels - lists all labels
GET labels/{id} - list label of id
GET albums - list all albums
GET albums/{id} - list album of id
GET songs - list all songs
GET songs/{id} - list song of id
POST labels - add a label name
{"labelName": "Some Label"}
PUT labels/{id} - update label name of id
{"labelName": "Some Label"}
POST labels/{labelid}/artists - add artist to label id
{"artistName": "Some Artist"}
GET labels/{id}/artists - get artists for a label
PUT labels/{labelid}/artists/{artistid} - update artist name of artistid for labelid
POST artists/{artistid}/albums - add album to artistid
GET artists/{id}/albums - get albums for an artist
PUT artists/{artistid}/albums/{albumid} - update album name of albumid for artistid
POST artists/{artistid}/albums/{albumid}/songs - add song to albumid and artistid
GET artists/{artistid}/albums/{albumid}/songs - get songs for an artists album