ThreeMammals / Ocelot

.NET API Gateway
https://www.nuget.org/packages/Ocelot
MIT License
8.4k stars 1.64k forks source link

Ocelot can't match placeholders between slashes #2199

Closed ggnaegi closed 2 weeks ago

ggnaegi commented 2 weeks ago

Expected Behavior / New Feature

Ocelot should be capable of matching paths that contain placeholders embedded between slashes, such as: /api/invoices_{url0}/{url1}-{url2}_abcd/{url3}?urlId={url4}.

Actual Behavior / Motivation for New Feature

Currently, Ocelot cannot match placeholders embedded between slashes. For example: /api/test/{url}-2 -> request: /api/test/a-2 -> the result will incorrectly return {url} = a-2.

Steps to Reproduce the Problem

  1. Try any template with placeholders embedded between slashes
raman-m commented 2 weeks ago

Accepted due open PR #2200