Updated Genre (markdown)
+39
-1
@@ -1 +1,39 @@
|
|||||||
## Genre
|
### Retrieving genre
|
||||||
|
**URI**: https://icarus-demo.com/api/v1/genre/2
|
||||||
|
**Method**: Get
|
||||||
|
**Content type**: application/json
|
||||||
|
**Authorization**: Bearer ``token``
|
||||||
|
**Response body**:
|
||||||
|
```Json
|
||||||
|
{
|
||||||
|
"id" : 2,
|
||||||
|
"genre" : "Hip-Hop",
|
||||||
|
"song_count" : 2
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Retrieving genres
|
||||||
|
**URI**: https://icarus-demo.com/api/v1/genre
|
||||||
|
**Method**: Get
|
||||||
|
**Content type**: application/json
|
||||||
|
**Authorization**: Bearer ``token``
|
||||||
|
**Response body**:
|
||||||
|
```Json
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"id" : 1,
|
||||||
|
"genre" : "Indie",
|
||||||
|
"song_count" : 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : 2,
|
||||||
|
"genre" : "Hip-Hop",
|
||||||
|
"song_count" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : 3,
|
||||||
|
"genre" : "Jazz",
|
||||||
|
"song_count" : 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user