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,
|
'type' => self::TYPE_STRING,
|
||||||
'description' => 'Collection ID.',
|
'description' => 'Collection ID.',
|
||||||
'default' => '',
|
'default' => '',
|
||||||
'example' => '',
|
'example' => '60ccf71b98a2d',
|
||||||
])
|
])
|
||||||
->addRule('$id', [
|
->addRule('$id', [
|
||||||
'type' => self::TYPE_STRING,
|
'type' => self::TYPE_STRING,
|
||||||
'description' => 'Attribute ID.',
|
'description' => 'Attribute ID.',
|
||||||
'default' => '',
|
'default' => '',
|
||||||
'example' => '',
|
'example' => '60ccf71b98a2d',
|
||||||
])
|
])
|
||||||
->addRule('type', [
|
->addRule('type', [
|
||||||
'type' => self::TYPE_STRING,
|
'type' => self::TYPE_STRING,
|
||||||
'description' => 'Attribute type.',
|
'description' => 'Attribute type.',
|
||||||
'default' => '',
|
'default' => '',
|
||||||
'example' => '',
|
'example' => 'integer',
|
||||||
])
|
])
|
||||||
->addRule('size', [
|
->addRule('size', [
|
||||||
'type' => self::TYPE_STRING,
|
'type' => self::TYPE_STRING,
|
||||||
|
|
Loading…
Reference in a new issue