Last active
June 14, 2018 15:03
-
-
Save byhbt/9fcd78f01c9676dbe741c005159a6eb7 to your computer and use it in GitHub Desktop.
Definge swagger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Models; | |
use Illuminate\Database\Eloquent\Model; | |
/** | |
* @SWG\Definition( | |
* definition="DirectoryLanguage", | |
* required={"id", "locale", "code", "name", "activated"}, | |
* @SWG\Property( | |
* property="id", | |
* type="int" | |
* ), | |
* @SWG\Property( | |
* property="locale", | |
* type="string", | |
* description="Locale", | |
* example="VN_vi" | |
* ), | |
* @SWG\Property( | |
* property="code", | |
* type="string", | |
* description="Language code", | |
* example="VN" | |
* ), | |
* @SWG\Property( | |
* property="name", | |
* type="string", | |
* description="", | |
* example="Vietnamese" | |
* ), | |
* @SWG\Property( | |
* property="activated", | |
* type="boolean", | |
* description="Enable/Disable the language", | |
* example="0,1" | |
* ), | |
* ) | |
*/ | |
class DirectoryLanguage extends Model | |
{ | |
public $timestamps = false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment