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

Create routes from environment logs (proxied or not) #139

Closed
gabrielperes97 opened this issue Jul 23, 2019 · 4 comments · Fixed by #185
Closed

Create routes from environment logs (proxied or not) #139

gabrielperes97 opened this issue Jul 23, 2019 · 4 comments · Fixed by #185
Assignees
Labels
Projects
Milestone

Comments

@gabrielperes97
Copy link
Contributor

@gabrielperes97 gabrielperes97 commented Jul 23, 2019

When I'm mocking a api, firstly I run my app proxied and so I copy the data from the log to a new route.

It can be helpful a button on the route of the environment log to use that request/response as a mock.

@gabrielperes97

This comment has been minimized.

Copy link
Contributor Author

@gabrielperes97 gabrielperes97 commented Jul 23, 2019

It can be developed more enhanced after the Issue #138 . I want to work in both.

@255kb

This comment has been minimized.

Copy link
Member

@255kb 255kb commented Jul 24, 2019

Could you please clarify what you mean by "proxy". Because Mockoon also has a "proxy" feature which redirect all non declared routes to a URL you provide (in the environment settings).

Specifications I understand from your ticket are the following:

  • you create an environment / declare some routes.
  • when you call this environment you can see all the entering requests in the "environment logs" tab. Some are caught by declared routes, some not (green tick or not).
  • on entering requests not caught (without green tick) you can have a button allowing one to declare the route automatically from entering request characteristics.

Am I right?

For your information, I started working on #75 in which I have to change many things because the route model changed. There is now a responses array containing multiple responses for each route. Also the store behavior changed as more UI options are required (multiple responses tabs, etc).
If you start working on this feature you may need to rewrite part of your code after my branch is merged. It's not published yet, I have it locally only but I can push something soon. I worked quite a lot on it so it has good chances to be merged soon.

@gabrielperes97

This comment has been minimized.

Copy link
Contributor Author

@gabrielperes97 gabrielperes97 commented Jul 24, 2019

You are right. This is it.

I'll work on #138 first until you merge #75.

@255kb

This comment has been minimized.

Copy link
Member

@255kb 255kb commented Jul 24, 2019

ok it's probably better and easier to wait on #75
Thank you

@255kb 255kb added the feature label Jul 24, 2019
gabrielperes97 added a commit to gabrielperes97/mockoon that referenced this issue Oct 18, 2019
@255kb 255kb closed this in #185 Oct 23, 2019
255kb added a commit that referenced this issue Oct 23, 2019
- Creating route from environment log (proxied and normal) #139
- Styling mock button
- Writing tests for proxy mock and basic mock
@255kb 255kb added this to the v1.6.0 milestone Oct 23, 2019
@255kb 255kb added this to To do in Roadmap via automation Oct 23, 2019
@255kb 255kb moved this from To do to In progress in Roadmap Oct 23, 2019
@255kb 255kb moved this from In progress to Test in Roadmap Oct 23, 2019
@255kb 255kb moved this from Test to Done in Roadmap Oct 23, 2019
@255kb 255kb changed the title Create routes from proxy responses Create routes from environment logs (proxied or not) Oct 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Roadmap
  
Done
2 participants
You can’t perform that action at this time.