1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Filled out base Book API endpoints, added example responses

This commit is contained in:
Dan Brown
2020-01-12 14:45:54 +00:00
parent a8595d8aaf
commit 04a8614136
12 changed files with 284 additions and 20 deletions

View File

@ -2,11 +2,12 @@
/**
* Routes for the BookStack API.
*
* Routes have a uri prefix of /api/.
* Controllers are all within app/Http/Controllers/Api
*/
// TODO - Authenticate middleware
Route::get('books', 'BooksApiController@index');
Route::get('books', 'BooksApiController@index');
Route::post('books', 'BooksApiController@create');
Route::get('books/{id}', 'BooksApiController@read');
Route::put('books/{id}', 'BooksApiController@update');
Route::delete('books/{id}', 'BooksApiController@delete');