Skip to content

Commit e3df0c6

Browse files
committed
chore: include PR requested changes and fix response
1 parent 900cd07 commit e3df0c6

File tree

2 files changed

+12
-24
lines changed

2 files changed

+12
-24
lines changed

app/Http/Controllers/Apis/Marketplace/RemoteCloudsApiController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function __construct(IRemoteCloudServiceRepository $repository, IResource
9898
],
9999
responses: [
100100
new OA\Response(
101-
response: 200,
101+
response: Response::HTTP_OK,
102102
description: 'Success - Returns paginated list of remotely managed private clouds',
103103
content: new OA\JsonContent(ref: '#/components/schemas/PaginatedRemoteCloudsResponse')
104104
),

app/Swagger/MarketplaceSchemas.php

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -89,29 +89,17 @@ class PaginatedPublicOrPrivateCloudsResponseSchema
8989
#[OA\Schema(
9090
schema: 'RemoteCloudsResponse',
9191
type: 'object',
92-
properties: [
93-
'id' => new OA\Property(property: 'id', type: 'integer', example: 1),
94-
'class_name' => new OA\Property(property: 'class_name', type: 'string', example: 'RemoteCloudService'),
95-
'name' => new OA\Property(property: 'name', type: 'string', example: 'Managed OpenStack Cloud Service'),
96-
'overview' => new OA\Property(property: 'overview', type: 'string', example: 'Remotely managed private OpenStack cloud'),
97-
'call_2_action_url' => new OA\Property(property: 'call_2_action_url', type: 'string', example: 'https://example.com/managed-cloud'),
98-
'slug' => new OA\Property(property: 'slug', type: 'string', example: 'managed-openstack-service'),
99-
'is_compatible_with_storage' => new OA\Property(property: 'is_compatible_with_storage', type: 'boolean', example: true),
100-
'is_compatible_with_compute' => new OA\Property(property: 'is_compatible_with_compute', type: 'boolean', example: true),
101-
'is_compatible_with_federated_identity' => new OA\Property(property: 'is_compatible_with_federated_identity', type: 'boolean', example: true),
102-
'is_compatible_with_platform' => new OA\Property(property: 'is_compatible_with_platform', type: 'boolean', example: true),
103-
'is_openstack_powered' => new OA\Property(property: 'is_openstack_powered', type: 'boolean', example: true),
104-
'is_openstack_tested' => new OA\Property(property: 'is_openstack_tested', type: 'boolean', example: true),
105-
'openstack_tested_info' => new OA\Property(property: 'openstack_tested_info', type: 'string', example: 'Tested with OpenStack Bobcat'),
106-
'hardware_spec' => new OA\Property(property: 'hardware_spec', type: 'string', example: 'High-performance servers with SSD storage'),
107-
'pricing_models' => new OA\Property(property: 'pricing_models', type: 'string', example: 'Monthly subscription, Pay-as-you-use'),
108-
'published_sla' => new OA\Property(property: 'published_sla', type: 'string', example: '99.9% uptime guarantee'),
109-
'is_vendor_managed_upgrades' => new OA\Property(property: 'is_vendor_managed_upgrades', type: 'boolean', example: true),
110-
'company_id' => new OA\Property(property: 'company_id', type: 'integer', example: 1),
111-
'company' => new OA\Property(property: 'company', type: 'Company'),
112-
'type_id' => new OA\Property(property: 'type_id', type: 'integer'),
113-
'type' => new OA\Property(property: 'type', type: 'MarketPlaceType'),
114-
'reviews' => new OA\Property(property: 'reviews', type: 'array', items: new OA\Items(type: 'MarketPlaceReview')),
92+
allOf: [
93+
new OA\Schema(ref: '#/components/schemas/OpenStackImplementation'),
94+
new OA\Schema(
95+
type: 'object',
96+
properties: [
97+
'hardware_spec' => new OA\Property(property: 'hardware_spec', type: 'string', example: 'High-performance servers with SSD storage'),
98+
'pricing_models' => new OA\Property(property: 'pricing_models', type: 'string', example: 'Monthly subscription, Pay-as-you-use'),
99+
'published_sla' => new OA\Property(property: 'published_sla', type: 'string', example: '99.9% uptime guarantee'),
100+
'is_vendor_managed_upgrades' => new OA\Property(property: 'is_vendor_managed_upgrades', type: 'boolean', example: true),
101+
]
102+
)
115103
]
116104
)]
117105
class RemoteCloudsResponseSchema {}

0 commit comments

Comments
 (0)