Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Problem with parameters in URL and URITemplate #165

Closed
snakeye opened this issue Apr 10, 2019 · 3 comments
Closed

Problem with parameters in URL and URITemplate #165

snakeye opened this issue Apr 10, 2019 · 3 comments
Labels

Comments

@snakeye
Copy link
Collaborator

snakeye commented Apr 10, 2019

Hello!

I'm trying to implement API tests with apish and looks like I've found a problem.

Consider the following API endpoints:

http://www.example.com:80/users/{user}/
http://www.example.com:80/users/{user}/posts/

In file create-mocks.js:28 the filtering path function will match API call /users/example/posts/ to the first endpoint due to nature of the URI Template - they use regexp /(.*)/$ to extract parameters.

@JackuB
Copy link
Owner

JackuB commented Apr 10, 2019

Nice catch, I'll take a look

@jesprider
Copy link

Hey @JackuB, what's the status of this one? Could you please take a look at the PR from @snakeye?

@JackuB JackuB closed this as completed in ded3fb4 Jul 23, 2019
@JackuB
Copy link
Owner

JackuB commented Jul 23, 2019

🎉 This issue has been resolved in version 2.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants