We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7990e10 commit d423095Copy full SHA for d423095
core/openapi.md
@@ -497,7 +497,27 @@ use App\Controller\RandomRabbit;
497
]
498
499
])
500
- )
+ ),
501
+ responses: [
502
+ 201 => new Model\Response(
503
+ content: new \ArrayObject([
504
+ 'application/json' => [
505
+ 'schema' => [
506
+ 'type' => 'object',
507
+ 'properties' => [
508
+ 'status' => ['type' => 'string'],
509
+ 'description' => ['type' => 'string']
510
+ ]
511
+ ],
512
+ 'example' => [
513
+ 'status' => 'success',
514
+ 'description' => 'Rabbit picture created.',
515
516
517
518
+ )
519
520
521
)
522
)]
523
class Rabbit
0 commit comments