Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Dynamic responses, Custom error response Advance Logging #3

Closed
uniibu opened this issue Oct 19, 2018 · 2 comments
Closed
Labels
enhancement New feature or request

Comments

@uniibu
Copy link

uniibu commented Oct 19, 2018

Dynamic responses
I'd like to request additional feature to be able to mock a server and respond dynamically based on parameters.

Excample scenario of this request:

  • I create a mock server running on localhost:3000/api/getinfo with a params of user
  • Then i could add a simple json record where the app could get the info from.
  • Then on response tab, i can put something like { "success": true, "data": $user }
  • The mock server will then get the data part on the given json based on the given params.

Custom error response

  • The current setup is when a params is given and it is missing from the request, it will respond with {"errors":[{"key":"user","details":"required params."}]}
  • It would nice if the user is able to customize this respond on every route.

Advance Logging

  • It would be nice to have something like an advance tab where user can view the actual request that was received. Something similar to this image
    image

Thanks!

@LanceGin
Copy link
Owner

Sorry, Dynamic responses && Custom error response will not be added to Mockman in the future version. In fact Mockman is a mock tool to help us developing our product fluently, we shouldn't denpend on it to do some test about our Specific business.

Advance Logging is a good idea, I will add a logging panel to every running server in the future.

@LanceGin LanceGin added the enhancement New feature or request label Oct 23, 2018
@LanceGin
Copy link
Owner

LanceGin commented Nov 3, 2018

A new logging panel has been added to Mockman version 1.0.4.

Logger

@LanceGin LanceGin closed this as completed Nov 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants