---
# System prepended metadata

title: Api-gw multimicroservice

---

# Api-gw multimicroservice

**mas-ticketing-api-v2.yaml**:
```yaml=
apis:
  ticketing:
    versions:
      v2:
        endpoints:
          api:
            timeout: { }
            retries:
              attempts: 2
              perTryTimeout: 65s
              retryOn: gateway-error,connect-failure,refused-stream,5xx
            labelSelector:
              app: mas-ticketing-api
            # Optional, define several subsets if you want to send
            # splitted traffic (canary, A/B...)
            subsets: {}
            # Several matching-routing rules can be defined
            match:
              # Just give each match rule a name to identify it
              # and allow yaml merging. Suggestion: use `general`
              # for the general availability rule
              general:
                uris:
                  # Only prefixes are supported, although internally it is converted
                  # to a regex to allow org resources and non-org resources as well
                  - prefix: "/ticketing"
  ossj:
    versions:
      v2:
        endpoints:
          api:
            timeout: { }
            retries:
              attempts: 2
              perTryTimeout: 65s
              retryOn: gateway-error,connect-failure,refused-stream,5xx
            labelSelector:
              app: mas-ticketing-api
            # Optional, define several subsets if you want to send
            # splitted traffic (canary, A/B...)
            subsets: {}
            # Several matching-routing rules can be defined
            match:
              # Just give each match rule a name to identify it
              # and allow yaml merging. Suggestion: use `general`
              # for the general availability rule
              general:
                uris:
                  # Only prefixes are supported, although internally it is converted
                  # to a regex to allow org resources and non-org resources as well
                  - prefix: "/ossj"

hostNameOverride: ticketing.sta.masstack.com