Skip to content

Commit 48ea9e1

Browse files
authored
feat(specs): add servers (#98)
1 parent a10152a commit 48ea9e1

File tree

8 files changed

+76
-1
lines changed

8 files changed

+76
-1
lines changed

.redocly.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ lint:
1212
- recommended
1313

1414
rules:
15-
no-empty-servers: off
1615
info-license: off # for now we can keep it off.
1716
no-ambiguous-paths: off # this is out of our scope.
1817
no-enum-type-mismatch: warn # keeping the warning since it only occur on one edge case

specs/abtesting/spec.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ components:
99
$ref: ../common/securitySchemes.yml#/appId
1010
apiKey:
1111
$ref: ../common/securitySchemes.yml#/apiKey
12+
servers:
13+
- url: https://analytics.{region}.algolia.com
14+
variables:
15+
region:
16+
enum:
17+
- us
18+
- de
19+
default: us
1220
security:
1321
- appId: []
1422
apiKey: []

specs/analytics/spec.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ components:
99
$ref: '../common/securitySchemes.yml#/appId'
1010
apiKey:
1111
$ref: '../common/securitySchemes.yml#/apiKey'
12+
servers:
13+
- url: https://analytics.{region}.algolia.com
14+
variables:
15+
region:
16+
enum:
17+
- us
18+
- de
19+
default: us
1220
security:
1321
- appId: []
1422
apiKey: []

specs/insights/spec.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ components:
99
$ref: '../common/securitySchemes.yml#/appId'
1010
apiKey:
1111
$ref: '../common/securitySchemes.yml#/apiKey'
12+
servers:
13+
- url: https://insights.algolia.io
1214
security:
1315
- appId: []
1416
apiKey: []

specs/personalization/spec.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ components:
99
$ref: '../common/securitySchemes.yml#/appId'
1010
apiKey:
1111
$ref: '../common/securitySchemes.yml#/apiKey'
12+
servers:
13+
- url: https://personalization.{region}.algolia.com
14+
variables:
15+
region:
16+
enum:
17+
- us
18+
- eu
19+
default: us
1220
security:
1321
- appId: []
1422
apiKey: []

specs/query-suggestions/spec.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ components:
99
$ref: '../common/securitySchemes.yml#/appId'
1010
apiKey:
1111
$ref: '../common/securitySchemes.yml#/apiKey'
12+
servers:
13+
- url: https://query-suggestions.{region}.algolia.com
14+
variables:
15+
region:
16+
enum:
17+
- us
18+
- eu
19+
default: us
1220
security:
1321
- appId: []
1422
apiKey: []

specs/recommend/spec.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,27 @@ components:
99
$ref: '../common/securitySchemes.yml#/appId'
1010
apiKey:
1111
$ref: '../common/securitySchemes.yml#/apiKey'
12+
servers:
13+
- url: https://{appId}.algolianet.com
14+
variables:
15+
appId:
16+
default: myAppId
17+
- url: https://{appId}-1.algolianet.com
18+
variables:
19+
appId:
20+
default: myAppId
21+
- url: https://{appId}-2.algolianet.com
22+
variables:
23+
appId:
24+
default: myAppId
25+
- url: https://{appId}-3.algolianet.com
26+
variables:
27+
appId:
28+
default: myAppId
29+
- url: https://{appId}-dsn.algolianet.com
30+
variables:
31+
appId:
32+
default: myAppId
1233
security:
1334
- appId: []
1435
apiKey: []

specs/search/spec.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,27 @@ components:
99
$ref: ../common/securitySchemes.yml#/appId
1010
apiKey:
1111
$ref: ../common/securitySchemes.yml#/apiKey
12+
servers:
13+
- url: https://{appId}.algolianet.com
14+
variables:
15+
appId:
16+
default: myAppId
17+
- url: https://{appId}-1.algolianet.com
18+
variables:
19+
appId:
20+
default: myAppId
21+
- url: https://{appId}-2.algolianet.com
22+
variables:
23+
appId:
24+
default: myAppId
25+
- url: https://{appId}-3.algolianet.com
26+
variables:
27+
appId:
28+
default: myAppId
29+
- url: https://{appId}-dsn.algolianet.com
30+
variables:
31+
appId:
32+
default: myAppId
1233
security:
1334
- appId: []
1435
apiKey: []

0 commit comments

Comments
 (0)