Skip to content

Commit

Permalink
feat(specs): add servers (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Jan 20, 2022
1 parent a10152a commit 48ea9e1
Show file tree
Hide file tree
Showing 8 changed files with 76 additions and 1 deletion.
1 change: 0 additions & 1 deletion .redocly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ lint:
- recommended

rules:
no-empty-servers: off
info-license: off # for now we can keep it off.
no-ambiguous-paths: off # this is out of our scope.
no-enum-type-mismatch: warn # keeping the warning since it only occur on one edge case
Expand Down
8 changes: 8 additions & 0 deletions specs/abtesting/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ components:
$ref: ../common/securitySchemes.yml#/appId
apiKey:
$ref: ../common/securitySchemes.yml#/apiKey
servers:
- url: https://analytics.{region}.algolia.com
variables:
region:
enum:
- us
- de
default: us
security:
- appId: []
apiKey: []
Expand Down
8 changes: 8 additions & 0 deletions specs/analytics/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ components:
$ref: '../common/securitySchemes.yml#/appId'
apiKey:
$ref: '../common/securitySchemes.yml#/apiKey'
servers:
- url: https://analytics.{region}.algolia.com
variables:
region:
enum:
- us
- de
default: us
security:
- appId: []
apiKey: []
Expand Down
2 changes: 2 additions & 0 deletions specs/insights/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ components:
$ref: '../common/securitySchemes.yml#/appId'
apiKey:
$ref: '../common/securitySchemes.yml#/apiKey'
servers:
- url: https://insights.algolia.io
security:
- appId: []
apiKey: []
Expand Down
8 changes: 8 additions & 0 deletions specs/personalization/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ components:
$ref: '../common/securitySchemes.yml#/appId'
apiKey:
$ref: '../common/securitySchemes.yml#/apiKey'
servers:
- url: https://personalization.{region}.algolia.com
variables:
region:
enum:
- us
- eu
default: us
security:
- appId: []
apiKey: []
Expand Down
8 changes: 8 additions & 0 deletions specs/query-suggestions/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ components:
$ref: '../common/securitySchemes.yml#/appId'
apiKey:
$ref: '../common/securitySchemes.yml#/apiKey'
servers:
- url: https://query-suggestions.{region}.algolia.com
variables:
region:
enum:
- us
- eu
default: us
security:
- appId: []
apiKey: []
Expand Down
21 changes: 21 additions & 0 deletions specs/recommend/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,27 @@ components:
$ref: '../common/securitySchemes.yml#/appId'
apiKey:
$ref: '../common/securitySchemes.yml#/apiKey'
servers:
- url: https://{appId}.algolianet.com
variables:
appId:
default: myAppId
- url: https://{appId}-1.algolianet.com
variables:
appId:
default: myAppId
- url: https://{appId}-2.algolianet.com
variables:
appId:
default: myAppId
- url: https://{appId}-3.algolianet.com
variables:
appId:
default: myAppId
- url: https://{appId}-dsn.algolianet.com
variables:
appId:
default: myAppId
security:
- appId: []
apiKey: []
Expand Down
21 changes: 21 additions & 0 deletions specs/search/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,27 @@ components:
$ref: ../common/securitySchemes.yml#/appId
apiKey:
$ref: ../common/securitySchemes.yml#/apiKey
servers:
- url: https://{appId}.algolianet.com
variables:
appId:
default: myAppId
- url: https://{appId}-1.algolianet.com
variables:
appId:
default: myAppId
- url: https://{appId}-2.algolianet.com
variables:
appId:
default: myAppId
- url: https://{appId}-3.algolianet.com
variables:
appId:
default: myAppId
- url: https://{appId}-dsn.algolianet.com
variables:
appId:
default: myAppId
security:
- appId: []
apiKey: []
Expand Down

0 comments on commit 48ea9e1

Please sign in to comment.