Skip to content

Commit 86dc53d

Browse files
authored
Merge pull request #2 from mbeyt/add-ons
fix formatting
2 parents 5b05d55 + 2bfb2a1 commit 86dc53d

File tree

9 files changed

+29
-4
lines changed

9 files changed

+29
-4
lines changed

specification/resources/addons/addons_delete.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ responses:
2020
'401':
2121
$ref: '../../shared/responses/unauthorized.yml'
2222

23+
'404':
24+
$ref: '../../shared/responses/not_found.yml'
25+
2326
'429':
2427
$ref: '../../shared/responses/too_many_requests.yml'
2528

specification/resources/addons/addons_get.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
operation: addons_get
1+
operationId: addons_get
22

33
summary: Get details on an Add-On Resource
44

@@ -13,6 +13,7 @@ parameters:
1313
- name: resource_uuid
1414
in: path
1515
required: true
16+
example: "123e4567-e89b-12d3-a456-426614174000"
1617
schema:
1718
type: string
1819
description: The UUID of the add-on resource to retrieve.
@@ -24,6 +25,9 @@ responses:
2425
'401':
2526
$ref: '../../shared/responses/unauthorized.yml'
2627

28+
'404':
29+
$ref: '../../shared/responses/not_found.yml'
30+
2731
'429':
2832
$ref: '../../shared/responses/too_many_requests.yml'
2933

specification/resources/addons/addons_get_app_metadata.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ parameters:
1313
- name: app_slug
1414
in: path
1515
required: true
16+
example: example_app
1617
schema:
1718
type: string
1819
description: The slug identifier for the application whose metadata is being requested.
@@ -24,6 +25,9 @@ responses:
2425
'401':
2526
$ref: '../../shared/responses/unauthorized.yml'
2627

28+
'404':
29+
$ref: '../../shared/responses/not_found.yml'
30+
2731
'429':
2832
$ref: '../../shared/responses/too_many_requests.yml'
2933

specification/resources/addons/addons_list.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
operation: addons_list
1+
operationId: addons_list
22

33
summary: List all Add-On Resources
44

specification/resources/addons/addons_update.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
operation: addons_update
1+
operationId: addons_patch
22

33
summary: Update the name for an Add-On Resource
44

@@ -13,6 +13,7 @@ parameters:
1313
- name: resource_uuid
1414
in: path
1515
required: true
16+
example: "123e4567-e89b-12d3-a456-426614174000"
1617
schema:
1718
type: string
1819
description: The UUID of the add-on resource to rename.
@@ -40,6 +41,9 @@ responses:
4041
'401':
4142
$ref: '../../shared/responses/unauthorized.yml'
4243

44+
'404':
45+
$ref: '../../shared/responses/not_found.yml'
46+
4347
'429':
4448
$ref: '../../shared/responses/too_many_requests.yml'
4549

specification/resources/addons/addons_update_plan.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
operation: addons_update_plan
1+
operationId: addons_patch_plan
22

33
summary: Update the plan for an Add-On Resource
44

@@ -13,6 +13,7 @@ parameters:
1313
- name: resource_uuid
1414
in: path
1515
required: true
16+
example: "123e4567-e89b-12d3-a456-426614174000"
1617
schema:
1718
type: string
1819
description: The UUID of the add-on resource to update.
@@ -40,6 +41,9 @@ responses:
4041
'401':
4142
$ref: '../../shared/responses/unauthorized.yml'
4243

44+
'404':
45+
$ref: '../../shared/responses/not_found.yml'
46+
4347
'429':
4448
$ref: '../../shared/responses/too_many_requests.yml'
4549

specification/resources/addons/models/addons_app_metadata.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ properties:
3737
options:
3838
title: options
3939
type: array
40+
example:
41+
- "US"
42+
- "UK"
43+
- "CA"
4044
items:
4145
type: string
4246
example: "UK"

specification/resources/addons/models/addons_feature.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ properties:
3838
description: Unit of measurement for the feature, if applicable. Units apply to allowance features.
3939

4040
value:
41+
example: "Unlimited"
4142
oneOf:
4243
- title: string_value
4344
type: string

specification/resources/addons/models/addons_resource_metadata.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ properties:
88
description: The name of the metadata item to be set.
99

1010
value:
11+
example: "example_value"
1112
oneOf:
1213
- title: string_value
1314
type: string

0 commit comments

Comments
 (0)