Closed francisprovost closed 4 years ago
Yes, it is possible using regexp in path, can you try to put following in path: ^\/toto\/find\?startDate=\d+\-\d+\-\d+\&endDate=\d+\-\d+ \-\d+$
Thanks in advance, Long Do Trong E me@dotronglong.com P 09 1450 1450
This e-mail is confidential. It may also be legally privileged. If you are not the addressee you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return e-mail. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. "SAVE THE PLANET - THINK CARE BEFORE PRINT!"
On Sat, May 2, 2020 at 2:32 AM Francis Provost notifications@github.com wrote:
Hi!
I was trying to use your project to mock one of my api and I find a use case that I'm not sure is supported or that I didn't find how to do it.
I have an endpoint where the URL is something like /toto/find?startDate=2020-04-26&endDate=2020-05-02. I was looking for a way to always return the same data whatever the startDate and endDate are. Is it something possible right now?
Thanks
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dotronglong/faker/issues/32, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOKU27LNJN2XYZ7YBTDIHTRPMIUJANCNFSM4MXI5MBA .
oh perfect! It totally does work!
Thanks for the lib!
Hi!
I was trying to use your project to mock one of my api and I find a use case that I'm not sure is supported or that I didn't find how to do it.
I have an endpoint where the URL is something like
/toto/find?startDate=2020-04-26&endDate=2020-05-02
. I was looking for a way to always return the same data whatever thestartDate
andendDate
are. Is it something possible right now?Thanks