Skip to content

Commit

Permalink
#101 #98 swagger base info added and one minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mitulgolakiya committed Apr 6, 2016
1 parent cda41ed commit 8803aa6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Common/GeneratorConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function loadDynamicVariables(CommandData &$commandData)
$commandData->addDynamicVariable('$ROUTES_AS_PREFIX$', $prefixAs);

$commandData->addDynamicVariable(
'$MODEL_NAME_PLURAL_SNAKE$',
'$API_PREFIX$',
config('infyom.laravel_generator.api_prefix', 'api')
);

Expand Down
11 changes: 11 additions & 0 deletions templates/app_base_controller.stub
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ namespace $NAMESPACE_CONTROLLER$;
use InfyOm\Generator\Utils\ResponseUtil;
use Response;

/**
* @SWG\Swagger(
* basePath="$API_PREFIX$/$API_VERSION$",
* @SWG\Info(
* title="Laravel Generator API",
* version="1.0.0",
* )
* )
* This class should be parent class for other API controllers
* Class ApiController
*/
class AppBaseController extends Controller
{
public function sendResponse($result, $message)
Expand Down

0 comments on commit 8803aa6

Please sign in to comment.