最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Mockserver with case sensitive urls - Stack Overflow

programmeradmin1浏览0评论

I use MockServer to create a docker container that provides mocked endpoints defined in a json file.

Everything works fine with this, but the only problem is that I need to distinguish the endpoint by their case sensitivity.

e.g.:

/myEndpoint(key='VALUE') => return VALUE

/myEndpoint(key='value') => return value

When I try to get the data of these endpoints via code or postman, I always get the response from the first definition, because its defined higher in json.

Is there a way to configure MockServer to treat the two endpoints as two single endpoints?

PS: Please dont try to change the urls, because I got them from some external source and I dont have any possibility to change them :D

发布评论

评论列表(0)

  1. 暂无评论