diff --git a/core/openapi.md b/core/openapi.md index f472a3b2f14..80685b63675 100644 --- a/core/openapi.md +++ b/core/openapi.md @@ -497,7 +497,27 @@ use App\Controller\RandomRabbit; ] ] ]) - ) + ), + responses: [ + 201 => new Model\Response( + content: new \ArrayObject([ + 'application/json' => [ + 'schema' => [ + 'type' => 'object', + 'properties' => [ + 'status' => ['type' => 'string'], + 'description' => ['type' => 'string'] + ] + ], + 'example' => [ + 'status' => 'success', + 'description' => 'Rabbit picture created.', + ] + ] + ] + ) + ) + ], ) )] class Rabbit diff --git a/symfony/index.md b/symfony/index.md index 1333f139cec..fbf3ca9f404 100644 --- a/symfony/index.md +++ b/symfony/index.md @@ -815,7 +815,7 @@ Keep in mind that you can use your favorite client-side technology: API Platform requests is OK (even COBOL can do that). To go further, the API Platform team maintains a demo application showing more advanced use cases like leveraging serialization -groups, user management, or JWT and OAuth authentication. [Checkout the demo code source on GitHub](https://github.com/api-platform/demo) +groups, user management, or JWT and OAuth authentication. [Check out the demo code source on GitHub](https://github.com/api-platform/demo) and [browse it online](https://demo.api-platform.com). ## Screencasts