Declarative-dbless-redirecturl

Hello, good morning guys!

I’d like to ask for help for you.

I’ve my docker manifest and I’m trying to insert a redirtect URL in a test environment, the goal is to remove /mock, but I’m not getting it, has anyone had a problem like that? Did I forget a parameter?

Example:
I’m using ‘/mock/echo’
or ‘/mock/ … (any)’

I want to extract only the ‘/mock’ in all my routes.
and not /mock/echo

Thank you very much.

Follow the example links below:

Note: I’ve already created a */mock * route and the stip path is enabled, but I don’t know if it’s the right way. I need that if I receive a request whose endpoint is unknown, return me a 404.

Thank you in advance

_transform: true

services:
- connect_timeout: 60000
  host: mocktarget.apigee.net
  name: mock
  port: 443
  protocol: https
  read_timeout: 60000
  retries: 3
  write_timeout: 60000
  config:
  replace:
    uri: / $ uri_captures
  routes:
  - name: routemock
    paths:
    - ['/mock/\.+']
    path_handling: v1
    preserve_host: true
    protocols:
    - http
    - https
    regex_priority: 0
    strip_path: true
    https_redirect_status_code: 426
  plugins1:
  - name: basic-auth
    route:
    config:
      hide_credentials: true
    
consumers:
- username: leo_arch
  custom_id: SOME_CUSTOM_ID

basicauth_credentials:
- consumer: *******
  username: ***
  password: ******** ```