You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/Http/Controllers/Public/BarController.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -12,17 +12,17 @@
12
12
13
13
class BarController extends Controller
14
14
{
15
-
#[OAT\Get(path: '/public/{barId}', tags: ['Public'], operationId: 'showPublicBar', description: 'Show public information about a single bar. To access this endpoint the bar must be marked as public.', summary: 'Show bar', parameters: [
16
-
newOAT\Parameter(name: 'barId', in: 'path', required: true, description: 'Database id of bar', schema: newOAT\Schema(type: 'number')),
15
+
#[OAT\Get(path: '/public/{slugOrId}', tags: ['Public'], operationId: 'showPublicBar', description: 'Show public information about a single bar. To access this endpoint the bar must be marked as public.', summary: 'Show bar', parameters: [
16
+
newOAT\Parameter(name: 'slugOrId', in: 'path', required: true, description: 'Database id of bar', schema: newOAT\Schema(type: 'string')),
Copy file name to clipboardExpand all lines: app/Http/Controllers/Public/CocktailController.php
+14-19Lines changed: 14 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,8 @@
18
18
19
19
class CocktailController extends Controller
20
20
{
21
-
#[OAT\Get(path: '/public/{barId}/cocktails', tags: ['Public'], operationId: 'listPublicBarCocktails', description: 'List and filter bar cocktails. To access this endpoint the bar must be marked as public.', summary: 'List cocktails', parameters: [
22
-
newOAT\Parameter(name: 'barId', in: 'path', required: true, description: 'Database id of bar', schema: newOAT\Schema(type: 'number')),
21
+
#[OAT\Get(path: '/public/{slugOrId}/cocktails', tags: ['Public'], operationId: 'listPublicBarCocktails', description: 'List and filter bar cocktails. To access this endpoint the bar must be marked as public.', summary: 'List cocktails', parameters: [
22
+
newOAT\Parameter(name: 'slugOrId', in: 'path', required: true, description: 'Database id or slug of bar', schema: newOAT\Schema(type: 'string')),
23
23
newBAO\Parameters\PageParameter(),
24
24
newOAT\Parameter(name: 'filter', in: 'query', description: 'Filter by attributes. You can specify multiple matching filter values by passing a comma separated list of values.', explode: true, style: 'deepObject', schema: newOAT\Schema(type: 'object', properties: [
#[OAT\Get(path: '/public/{barId}/cocktails/{slugOrPublicId}', tags: ['Public'], operationId: 'showPublicBarCocktail', description: 'Show public information about cocktail. If valid public ID is provided it will used, if not it will use cocktail slug.', summary: 'Show cocktail', parameters: [
70
-
newOAT\Parameter(name: 'barId', in: 'path', required: true, description: 'Database id of bar', schema: newOAT\Schema(type: 'number')),
69
+
#[OAT\Get(path: '/public/{slugOrId}/cocktails/{slugOrPublicId}', tags: ['Public'], operationId: 'showPublicBarCocktail', description: 'Show public information about cocktail. If valid public ID is provided it will used, if not it will use cocktail slug.', summary: 'Show cocktail', parameters: [
70
+
newOAT\Parameter(name: 'slugOrId', in: 'path', required: true, description: 'Database id of bar', schema: newOAT\Schema(type: 'string')),
71
71
newOAT\Parameter(name: 'slugOrPublicId', in: 'path', required: true, description: 'Cocktail slug or public id (ULID)', schema: newOAT\Schema(type: 'string')),
Copy file name to clipboardExpand all lines: app/Http/Resources/Public/BarResource.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,8 +20,9 @@
20
20
newOAT\Property(property: 'subtitle', type: 'string', nullable: true, example: 'A short subtitle of a bar', description: 'Optional short quip about the bar'),
21
21
newOAT\Property(property: 'description', type: 'string', nullable: true, example: 'Bar description', description: 'Description of the bar'),
22
22
newOAT\Property(property: 'images', type: 'array', items: newOAT\Items(type: ImageResource::class), description: 'Images associated with the bar'),
23
+
newOAT\Property(property: 'is_menu_enabled', type: 'boolean', example: true, description: 'Whether the bar has enabled its menu for public viewing'),
0 commit comments