Aconex / drakov

Mock Server that implements the API Blueprint specification
MIT License
481 stars 115 forks source link

URI conflict #175

Closed zqhong closed 6 years ago

zqhong commented 7 years ago

I have project foo and project bar, they both have api GET /search. For this case, drakov will conflict as repeat URI.

So how to add prefix for URI. Such as, for project foo, the API is GET /foo/search. And for project bar, the API is GET /bar/search.

Or using the host for differentiate project foo and project bar. Like this, GET http://mock.foo.com/search will match project foo API. And GET http://mock.bar.com/search will match project bar.

Now, I used a dirty way. Before running drakov, copy document to the temp folder. Then, using sed command for replace resource API.

aj-jaswanth commented 6 years ago

Why don't you want to set foo as the context path for that service?

zqhong commented 6 years ago

Sorry, I forgot why I want to do this.