Updated Year (markdown)
+39
-1
@@ -1 +1,39 @@
|
|||||||
## Year
|
### Retrieving year
|
||||||
|
**URI**: https://icarus-demo.com/api/v1/year/2
|
||||||
|
**Method**: Get
|
||||||
|
**Content type**: application/json
|
||||||
|
**Authorization**: Bearer ``token``
|
||||||
|
**Response body**:
|
||||||
|
```Json
|
||||||
|
{
|
||||||
|
"id" : 2,
|
||||||
|
"year" : 2017,
|
||||||
|
"song_count" : 2
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Retrieving all years
|
||||||
|
**URI**: https://icarus-demo.com/api/v1/year
|
||||||
|
**Method**: Get
|
||||||
|
**Content type**: application/json
|
||||||
|
**Authorization**: Bearer ``token``
|
||||||
|
**Response body**:
|
||||||
|
```Json
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"id" : 1,
|
||||||
|
"year" : 2012,
|
||||||
|
"song_count" : 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : 2,
|
||||||
|
"year" : 2017,
|
||||||
|
"song_count" : 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id" : 3,
|
||||||
|
"year" : 1995,
|
||||||
|
"song_count" : 1,
|
||||||
|
}
|
||||||
|
]
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user