You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen something similar on delay - I think it's because something internal converts it from 2s (for example) to {"delay": 2000000}. Seems like that's happening before something that tries to validate the delay as a string in the right format.
I've made POST and PUT api/mapping endpoints to work okay with JSON definitions (with some drawbacks, but I'm completely newbie in golang), as well as I've tried to fix delays handling in my fork (https://github.com/leon-id/mmock), so you could try your usecases.
It is necessary to add .json to mock name, and you should directly declare URI in mock definition: curl -d '{"URI":"foo.json", "request": {"method": "GET", "path": "/foo"}, "response": {"statusCode": 200}}' -X POST http://localhost:8082/api/mapping/foo.json
File definitions seem to be ok, but working with API is almost impossible. Simple example:
Is it really created?
I don't speak go to troubleshoot this but let's try something very naive:
Logs:
I don't think
swagger.json
even mentiones this endpoint BTW.I thought you should know
The text was updated successfully, but these errors were encountered: