open-api - work in progress
This commit is contained in:
parent
0054b078b8
commit
2069d90c54
42
app/app.php
42
app/app.php
|
@ -499,27 +499,27 @@ $utopia->get('/v1/open-api-2.json')
|
|||
],
|
||||
'paths' => [],
|
||||
'definitions' => [
|
||||
'Pet' => [
|
||||
'required' => ['id', 'name'],
|
||||
'properties' => [
|
||||
'id' => [
|
||||
'type' => 'integer',
|
||||
'format' => 'int64',
|
||||
],
|
||||
'name' => [
|
||||
'type' => 'string',
|
||||
],
|
||||
'tag' => [
|
||||
'type' => 'string',
|
||||
],
|
||||
],
|
||||
],
|
||||
'Pets' => array(
|
||||
'type' => 'array',
|
||||
'items' => array(
|
||||
'$ref' => '#/definitions/Pet',
|
||||
),
|
||||
),
|
||||
// 'Pet' => [
|
||||
// 'required' => ['id', 'name'],
|
||||
// 'properties' => [
|
||||
// 'id' => [
|
||||
// 'type' => 'integer',
|
||||
// 'format' => 'int64',
|
||||
// ],
|
||||
// 'name' => [
|
||||
// 'type' => 'string',
|
||||
// ],
|
||||
// 'tag' => [
|
||||
// 'type' => 'string',
|
||||
// ],
|
||||
// ],
|
||||
// ],
|
||||
// 'Pets' => array(
|
||||
// 'type' => 'array',
|
||||
// 'items' => array(
|
||||
// '$ref' => '#/definitions/Pet',
|
||||
// ),
|
||||
// ),
|
||||
'Error' => array(
|
||||
'required' => array(
|
||||
0 => 'code',
|
||||
|
|
Loading…
Reference in a new issue