I am fairly new to kubernetes so I can't suggest how this can be done but we'd really like the ability to specify path_type as part of rule within a kubernetes_ingress.
In Yaml this would look like this:
- path: /api/app.api
pathType: Prefix
backend:
serviceName: appapi
servicePort: 80
pathType was introduced as part of 1.18. It is part of the v1 ingress spec as of 1.19. In 1.19 pathType MUST be specified.

Thanks for opening this @zolty – we definitely want to bring in support for v1 of the networking API, which this attribute is a part of. As we currently use v1beta1 of the API however we will still need to support that for some time too.
If anyone is interested in opening a PR for this, we have some prior art on supporting two API versions with the horizontal_pod_autoscaler resource.
Most helpful comment
pathType was introduced as part of 1.18. It is part of the v1 ingress spec as of 1.19. In 1.19 pathType MUST be specified.