Closed LauraWebdev closed 5 years ago
Route::get('/songs/top/{start?}','ApiController@topDownloads');
Route::get('/songs/plays/{start?}','ApiController@topPlayed');
Route::get('/songs/new/{start?}','ApiController@newest');
Route::get('/songs/byuser/{id}/{start?}','ApiController@byUser');
Route::get('/songs/detail/{key}','ApiController@detail');
Route::get('/songs/vote/{key}/{type}/{accessToken}', 'ApiController@vote');
Route::get('/songs/search/{type}/{key}','ApiController@search');
protected function searchableKeys()
{
return [
'author' => [
'type' => 'like',
'fields' => ['sd.author_name'],
],
'name' => [
'type' => 'fulltext',
'fields' => ['s.name'],
],
'user' => [
'type' => 'like',
'fields' => ['u.name'],
],
'hash' => [
'type' => 'equal',
'fields' => ['sd.hash_md5'],
],
'song' => [
'type' => 'fulltext',
'fields' => ['sd.song_name', 'sd.song_sub_name', 'sd.author_name'],
],
'all' => [
'type' => 'mixed',
'fields' => ['name', 'user', 'song'],
],
];
}
thank you very much!
At some point I'm going to write up actual documentation for the API, I'll post it here when it's done
Maybe leave that issue open so it is easier to find
Are there any documents or ressources for the beatsaver api? I've seen a few api urls but no documentation of it.