Skip to content

Commit 3cb78f9

Browse files
committed
chore: include PR requested changes and fix response
1 parent c74ac81 commit 3cb78f9

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
@@ -142,29 +142,17 @@ class PaginatedAppliancesResponseSchema
142142
#[OA\Schema(
143143
schema: 'RemoteCloudsResponse',
144144
type: 'object',
145-
properties: [
146-
'id' => new OA\Property(property: 'id', type: 'integer', example: 1),
147-
'class_name' => new OA\Property(property: 'class_name', type: 'string', example: 'RemoteCloudService'),
148-
'name' => new OA\Property(property: 'name', type: 'string', example: 'Managed OpenStack Cloud Service'),
149-
'overview' => new OA\Property(property: 'overview', type: 'string', example: 'Remotely managed private OpenStack cloud'),
150-
'call_2_action_url' => new OA\Property(property: 'call_2_action_url', type: 'string', example: 'https://example.com/managed-cloud'),
151-
'slug' => new OA\Property(property: 'slug', type: 'string', example: 'managed-openstack-service'),
152-
'is_compatible_with_storage' => new OA\Property(property: 'is_compatible_with_storage', type: 'boolean', example: true),
153-
'is_compatible_with_compute' => new OA\Property(property: 'is_compatible_with_compute', type: 'boolean', example: true),
154-
'is_compatible_with_federated_identity' => new OA\Property(property: 'is_compatible_with_federated_identity', type: 'boolean', example: true),
155-
'is_compatible_with_platform' => new OA\Property(property: 'is_compatible_with_platform', type: 'boolean', example: true),
156-
'is_openstack_powered' => new OA\Property(property: 'is_openstack_powered', type: 'boolean', example: true),
157-
'is_openstack_tested' => new OA\Property(property: 'is_openstack_tested', type: 'boolean', example: true),
158-
'openstack_tested_info' => new OA\Property(property: 'openstack_tested_info', type: 'string', example: 'Tested with OpenStack Bobcat'),
159-
'hardware_spec' => new OA\Property(property: 'hardware_spec', type: 'string', example: 'High-performance servers with SSD storage'),
160-
'pricing_models' => new OA\Property(property: 'pricing_models', type: 'string', example: 'Monthly subscription, Pay-as-you-use'),
161-
'published_sla' => new OA\Property(property: 'published_sla', type: 'string', example: '99.9% uptime guarantee'),
162-
'is_vendor_managed_upgrades' => new OA\Property(property: 'is_vendor_managed_upgrades', type: 'boolean', example: true),
163-
'company_id' => new OA\Property(property: 'company_id', type: 'integer', example: 1),
164-
'company' => new OA\Property(property: 'company', type: 'Company'),
165-
'type_id' => new OA\Property(property: 'type_id', type: 'integer'),
166-
'type' => new OA\Property(property: 'type', type: 'MarketPlaceType'),
167-
'reviews' => new OA\Property(property: 'reviews', type: 'array', items: new OA\Items(type: 'MarketPlaceReview')),
145+
allOf: [
146+
new OA\Schema(ref: '#/components/schemas/OpenStackImplementation'),
147+
new OA\Schema(
148+
type: 'object',
149+
properties: [
150+
'hardware_spec' => new OA\Property(property: 'hardware_spec', type: 'string', example: 'High-performance servers with SSD storage'),
151+
'pricing_models' => new OA\Property(property: 'pricing_models', type: 'string', example: 'Monthly subscription, Pay-as-you-use'),
152+
'published_sla' => new OA\Property(property: 'published_sla', type: 'string', example: '99.9% uptime guarantee'),
153+
'is_vendor_managed_upgrades' => new OA\Property(property: 'is_vendor_managed_upgrades', type: 'boolean', example: true),
154+
]
155+
)
168156
]
169157
)]
170158
class RemoteCloudsResponseSchema

0 commit comments

Comments
 (0)