Files
api-guidelines/asynchronous-api-guidelines/kafka-asynchronous-guidelines/i_servers.md
Perez, JuanManuel 7e812bb5ce GITBOOK-5: No subject
2024-05-10 11:41:28 +00:00

998 B

Servers

All AsyncAPI specs MUST include a servers section including references to the right Kafka clusters, defined and maintained globally.

For example, in Swaggerhub it is possible to refer to those reusable definitions through:

https://design.api.3stripes.io/domains/adidas/asyncapi_adoption_commons/1.0.0

more specifically, it is possible to add the right Kafka servers like this:

...
servers:
  pivotalDev:
    $ref: https://design.api.3stripes.io/v1/domains/adidas/asyncapi_adoption_commons/1.0.0#/components/servers/pivotalDev
  pivotalSit:
    $ref: https://design.api.3stripes.io/v1/domains/adidas/asyncapi_adoption_commons/1.0.0#/components/servers/pivotalSit
  pivotalPro:
    $ref: https://design.api.3stripes.io/v1/domains/adidas/asyncapi_adoption_commons/1.0.0#/components/servers/pivotalPro
...

Important note Don't forget to include '/v1/' in the URL of the domain