- Add DISCOVERY_LOG_LEVEL=debug - Add DISCOVERY_SHOW_PROGRESS=true - Temporary changes for debugging InitializerProcessor fixes on production
25 lines
539 B
PHP
25 lines
539 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Framework\OpenApi\Attributes;
|
|
|
|
use Attribute;
|
|
|
|
/**
|
|
* Describes a response for an API endpoint
|
|
*/
|
|
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
|
|
final readonly class ApiResponse
|
|
{
|
|
public function __construct(
|
|
public int $statusCode,
|
|
public string $description,
|
|
public ?string $contentType = 'application/json',
|
|
public ?string $schemaRef = null,
|
|
public ?array $example = null,
|
|
public array $headers = [],
|
|
) {
|
|
}
|
|
}
|