1 <?php namespace BookStack\Http\Controllers\Api;
3 use BookStack\Api\ApiDocsGenerator;
5 class ApiDocsController extends ApiController
9 * Load the docs page for the API.
11 public function display()
13 $docs = ApiDocsGenerator::generateConsideringCache();
14 $this->setPageTitle(trans('settings.users_api_tokens_docs'));
15 return view('api-docs.index', [
21 * Show a JSON view of the API docs data.
23 public function json()
25 $docs = ApiDocsGenerator::generateConsideringCache();
26 return response()->json($docs);