Added OpenAPI docs using nelmioAPIDocBundle.

This commit is contained in:
Daniel-Garmig committed 2024-09-20 21:29:23 +02:00
1 parent 0cf6f231a3
commit bfcd04c701
18 files changed
+610 -20

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
<?php
namespace App\Response;
use OpenApi\Attributes as OA;
class BookingCreateResponse
{
#[OA\Property(description: 'Booking reference number')]
public string $refNumber;
}
@@ -0,0 +1,14 @@
<?php
namespace App\Response;
use OpenApi\Attributes as OA;
class SearchAvailabilityResponse
{
#[OA\Property(description: 'Room category ID')]
public string $roomCategory;
#[OA\Property(description: 'Number of available rooms')]
public int $availability;
}
@@ -0,0 +1,14 @@
<?php
namespace App\Response;
use OpenApi\Attributes as OA;
class SearchFareCategoryResponse
{
#[OA\Property(description: 'Number of guests')]
public int $guestNumber;
#[OA\Property(description: 'room price')]
public int $price;
}