apiVersion: configuration.konghq.com/v1alpha1 kind: KongRoute metadata: name: ${NAME}-customers-api-listcustomers namespace: ${NAMESPACE} spec: serviceRef: type: namespacedRef namespacedRef: name: ${NAME}-customers-api name: customers-api_listcustomers methods: - GET - OPTIONS paths: - /customers/v1/customers/ strip_path: false tags: - customers --- apiVersion: configuration.konghq.com/v1alpha1 kind: KongRoute metadata: name: ${NAME}-customers-api-createcustomer namespace: ${NAMESPACE} spec: serviceRef: type: namespacedRef namespacedRef: name: ${NAME}-customers-api name: customers-api_createcustomer methods: - POST - OPTIONS paths: - /customers/v1/customers/ strip_path: false tags: - customers --- apiVersion: configuration.konghq.com/v1alpha1 kind: KongRoute metadata: name: ${NAME}-customers-api-getcustomer namespace: ${NAMESPACE} spec: serviceRef: type: namespacedRef namespacedRef: name: ${NAME}-customers-api name: customers-api_getcustomer methods: - GET - OPTIONS paths: - ~/customers/v1/customers/(?[^#?/]+)/$ strip_path: false tags: - customers --- apiVersion: configuration.konghq.com/v1alpha1 kind: KongRoute metadata: name: ${NAME}-customers-api-updatecustomer namespace: ${NAMESPACE} spec: serviceRef: type: namespacedRef namespacedRef: name: ${NAME}-customers-api name: customers-api_updatecustomer methods: - PUT - OPTIONS paths: - ~/customers/v1/customers/(?[^#?/]+)/$ strip_path: false tags: - customers --- apiVersion: configuration.konghq.com/v1alpha1 kind: KongRoute metadata: name: ${NAME}-customers-api-patchcustomer namespace: ${NAMESPACE} spec: serviceRef: type: namespacedRef namespacedRef: name: ${NAME}-customers-api name: customers-api_patchcustomer methods: - PATCH - OPTIONS paths: - ~/customers/v1/customers/(?[^#?/]+)/$ strip_path: false tags: - customers --- apiVersion: configuration.konghq.com/v1alpha1 kind: KongRoute metadata: name: ${NAME}-customers-api-deletecustomer namespace: ${NAMESPACE} spec: serviceRef: type: namespacedRef namespacedRef: name: ${NAME}-customers-api name: customers-api_deletecustomer methods: - DELETE - OPTIONS paths: - ~/customers/v1/customers/(?[^#?/]+)/$ strip_path: false tags: - customers --- apiVersion: configuration.konghq.com/v1alpha1 kind: KongRoute metadata: name: ${NAME}-customers-api-getcustomerorders namespace: ${NAMESPACE} spec: serviceRef: type: namespacedRef namespacedRef: name: ${NAME}-customers-api name: customers-api_getcustomerorders methods: - GET - OPTIONS paths: - ~/customers/v1/customers/(?[^#?/]+)/orders/$ strip_path: false tags: - customers --- apiVersion: configuration.konghq.com/v1alpha1 kind: KongRoute metadata: name: ${NAME}-customers-api-getcustomerpayments namespace: ${NAMESPACE} spec: serviceRef: type: namespacedRef namespacedRef: name: ${NAME}-customers-api name: customers-api_getcustomerpayments methods: - GET - OPTIONS paths: - ~/customers/v1/customers/(?[^#?/]+)/payments/$ strip_path: false tags: - customers