diff --git a/README.md b/README.md index 0c5a005..f4b3c4b 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Method documentation example: * @apiErr 403 | Unauthorized access * @apiResp 200 | Whatever message is send from backend on sucess */ - public function saveDesign($id, DesignRequest $request){} + public function index($id, DesignRequest $request){} - @apiDesc - A description of the method - @apiParam - There is no limit of parameters. Parameters can be required or not required. If **word required** is typed the parameter is marked as **required**. Check the example. diff --git a/composer.json b/composer.json index 3e33597..ffb4e6b 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,6 @@ "Despark\\Apidoc\\": "src/" } }, - "minimum-stability": "stable", "require": { "laravel/framework": "5.1.*" }, diff --git a/src/Commands/ApiDocGenerator.php b/src/Commands/ApiDocGenerator.php index b8ea557..4ae6089 100644 --- a/src/Commands/ApiDocGenerator.php +++ b/src/Commands/ApiDocGenerator.php @@ -414,7 +414,7 @@ protected function writeToFile() $fileDir = storage_path('appDoc'); \File::deleteDirectory($fileDir); \File::makeDirectory($fileDir); - \File::put($fileDir.DIRECTORY_SEPARATOR.'resource.json', \GuzzleHttp\json_encode($this->swagger)); + \File::put($fileDir.DIRECTORY_SEPARATOR.'resource.json', json_encode($this->swagger)); }