Add examples to response model for docs
This commit is contained in:
parent
48e15c7916
commit
1ae6cf39f6
|
@ -14,19 +14,19 @@ class Attribute extends Model
|
|||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Collection ID.',
|
||||
'default' => '',
|
||||
'example' => '',
|
||||
'example' => '60ccf71b98a2d',
|
||||
])
|
||||
->addRule('$id', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Attribute ID.',
|
||||
'default' => '',
|
||||
'example' => '',
|
||||
'example' => '60ccf71b98a2d',
|
||||
])
|
||||
->addRule('type', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Attribute type.',
|
||||
'default' => '',
|
||||
'example' => '',
|
||||
'example' => 'integer',
|
||||
])
|
||||
->addRule('size', [
|
||||
'type' => self::TYPE_STRING,
|
||||
|
|
Loading…
Reference in a new issue