drdrej / rest-api-mock

simple rest api mock
MIT License
0 stars 1 forks source link

Is there a way to have a path with a placeholder? #27

Open anabella-spinelli-olx opened 7 years ago

anabella-spinelli-olx commented 7 years ago

Hi! I was wondering if there's a way to create a mock endpoint that will have a placeholder in its path.

Something like /items/:id where I can enter any id there and it will return the same (hardcoded) response.

I understand this is set at the pattern option, but then the endpoint only works for the value set at path.

Thank you!

drdrej commented 7 years ago

Hi!

can you maybe better explain what you're missing?

path supports patterns. and should later support response objects built based on request. (mocks based on templates) please describe your request and response example and maybe i can extend it.

best regards, andrej