apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: aks-apirouting
  namespace: api
  annotations:
    kubernetes.io/ingress.class: addon-http-application-routing
spec:
  rules:
  - host: trip-viewer-service.83babc5918a04cce829e.westus.aksapp.io
    http:
      paths:
      - path: /api/user
        pathType: Prefix
        backend:
          service: 
            name: user-profile-service
            port: 
              number: 80
      - path: /api/user-java
        pathType: Prefix
        backend:
          service: 
            name: user-java-service
            port: 
              number: 80
      - path: /api/poi
        pathType: Prefix
        backend:
          service: 
            name: poi
            port: 
              number: 80
      - path: /api/trips
        pathType: Prefix
        backend:
          service: 
            name: trips-service
            port: 
              number: 80