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 a mock from a request #87

Closed
Thiht opened this issue Apr 11, 2020 · 4 comments · Fixed by #92
Closed

Create a mock from a request #87

Thiht opened this issue Apr 11, 2020 · 4 comments · Fixed by #92
Labels
feature-request New feature or request

Comments

@Thiht
Copy link
Collaborator

Thiht commented Apr 11, 2020

A nice to have workflow would be the following:

  • On a request in the history, click on a "+" (title: "Create mock from request")
  • The mock editor opens, prefilled with:
- request:
    method:        # The request method
    path:          # The request path
    query_params:  # The request query params
    headers:       # The request headers (the user can remove the unnecessary ones as needed, but maybe we can filter some of them)
    # no body
- response:
    status: 200
    headers:
      Content-Type: application/json
    body: >
@gwleclerc
Copy link
Collaborator

gwleclerc commented Apr 11, 2020

Je prend le point à moins que ça te démange de le faire 😁

@Thiht
Copy link
Collaborator Author

Thiht commented Apr 11, 2020

Nan tu peux y aller ! En vrai je sais pas trop comment gérer le routing dans un cas comme ça, donc fais toi plaiz 😄

@gwleclerc
Copy link
Collaborator

Query params !!!!!

@gwleclerc
Copy link
Collaborator

ou local storage...

@Thiht Thiht added the feature-request New feature or request label May 23, 2020
@Thiht Thiht closed this as completed in #92 May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Development

Successfully merging a pull request may close this issue.

2 participants