This project aims to create not just a music player but a universal music search that enables you to import music from different sources and play them using different platforms like mobile, web, desktop etc.
Enables playback for song/file using http 206 partial content
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| download | body | message/rfc8259 see models.DownloadRequestModel | Yes | string |
| Code | Description | Schema |
|---|---|---|
| 0 | models.DownloadRequestModel | |
| 200 | serve song/file with range request (http 206) | |
| 500 | Internal Server Error | models.ApiResponseModel |
Enables playback for song/file using http 206 partial content
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| sourceId | path | Id of song/file to serve using http 206 partial content | Yes | string |
| Code | Description | Schema |
|---|---|---|
| 200 | serve song/file with range request (http 206) | |
| 500 | Internal Server Error | models.ApiResponseModel |
Returns data for all playlist, if lastKnowPlaylistId then only the playlist after lastKnowPlaylistId
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| lastKnowPlaylistId | path | Last know playlist id by the client, default is 0 | No | integer |
| Code | Description | Schema |
|---|---|---|
| 200 | OK | models.Playlist |
| 500 | Internal Server Error | models.ApiResponseModel |
Returns data for a playlist, if lastKnowSongPosition then only songs added after lastKnowSongPosition
| Name | Located in | Description | Required | Schema |
|---|---|---|---|---|
| playlistId | path | Id of playlist | Yes | integer |
| lastKnowSongPosition | path | Last song that is know by the client, pass this in to only get the latest songs | No | integer |
| Code | Description | Schema |
|---|---|---|
| 200 | OK | models.Song |
| 500 | Internal Server Error | models.ApiResponseModel |
Returns data for all songs
| Code | Description | Schema |
|---|---|---|
| 200 | OK | models.Song |
| 500 | Internal Server Error | models.ApiResponseModel |
| Name | Type | Description | Required |
|---|---|---|---|
| data | No | ||
| message | string | No |
| Name | Type | Description | Required |
|---|---|---|---|
| url | string | No |
| Name | Type | Description | Required |
|---|---|---|---|
| creationDate | string | No | |
| description | string | No | |
| id | integer | No | |
| isPublic | boolean | No | |
| name | string | No | |
| thumbnailPath | string | No | |
| updatedAt | string | No |
| Name | Type | Description | Required |
|---|---|---|---|
| created_at | string | No | |
| duration | integer | No | |
| id | integer | No | |
| name | string | No | |
| path | string | No | |
| source_id | string | No | |
| thumbnail_path | string | No | |
| updated_at | string | No |