apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: api-ingress
  namespace: api-dev
spec:
  ingressClassName: nginx
  rules:
  - http:
      paths:
      - path: /api/trips
        pathType: Prefix
        backend:
          service:
            name: trips-service
            port: 
              number: 80
      - path: /api/poi
        pathType: Prefix
        backend:
          service:
            name: poi-service
            port: 
              number: 80
      - path: /api/user-java
        pathType: Prefix
        backend:
          service:
            name: user-profile-java-service
            port: 
              number: 80
      - path: /api/user
        pathType: Prefix
        backend:
          service:
            name: user-profile-js-service
            port: 
              number: 80