OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
API
/
vendor
/
zircote
/
swagger-php
/
Examples
/
webhooks81
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/07/2024 04:34:50 AM
rwxr-xr-x
📄
OpenApiSpec.php
942 bytes
08/07/2024 04:34:27 AM
rw-r--r--
📄
Pet.php
312 bytes
08/07/2024 04:34:27 AM
rw-r--r--
📄
webhooks.yaml
718 bytes
08/07/2024 04:34:27 AM
rw-r--r--
Editing: OpenApiSpec.php
Close
<?php declare(strict_types=1); namespace OpenApi\Examples\Webhooks81; use OpenApi\Attributes as OAT; #[OAT\OpenApi( info: new OAT\Info(version: '1.0.0', title: 'Webhook Example'), webhooks: [ new OAT\Webhook( webhook: 'newPet', post: new OAT\Post( requestBody: new OAT\RequestBody( description: 'Information about a new pet in the system', content: new OAT\MediaType( mediaType: 'application/json', schema: new OAT\Schema(ref: Pet::class) ) ), responses: [ new OAT\Response( response: 200, description: 'Return a 200 status to indicate that the data was received successfully' ), ] ) ), ], )] class OpenApiSpec { }