Skip to content

Commit

Permalink
update api spec
Browse files Browse the repository at this point in the history
  • Loading branch information
cup0noodles committed Dec 6, 2023
1 parent 2b24c67 commit ae3a51a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/APISpec.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,19 @@ Add song to the song library. Each song should be a unique version.
}
]
```
## Delete Song - `/song/{song_id}/remove` (POST)
## Search Song - `/song/search/{query}` (GET)

Searching song name and artist for the given query.

**Request**:

```json
{
"query": "string", /* Any search query, is wildcarded front and back */
"page": "int" /* page number, starting from 0 */
}
```
## Search Song - `/song/{song_id}/remove` (POST)

Remove song from the song library.

Expand All @@ -64,6 +76,7 @@ Remove song from the song library.
}
]
```

## Play Song - `/song/{song_id}/play` (GET) (*COMPLEX*)
Returns a URL to play the given song corespronging to the song_id. May play an ad.

Expand Down

0 comments on commit ae3a51a

Please sign in to comment.