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

Extract current Expectations via API #1850

Open
JoaoGFarias opened this issue Feb 28, 2024 · 0 comments
Open

Extract current Expectations via API #1850

JoaoGFarias opened this issue Feb 28, 2024 · 0 comments

Comments

@JoaoGFarias
Copy link

JoaoGFarias commented Feb 28, 2024

Describe the feature request
To have a GET endpoint in MockServer's API that returns in its payload a list of all Expecations currently
existing in a MockServer instance.

What you are trying to do
Currently, MockServer's API allows the user to introduce Expectations to a MockServer instance.

image

However, a feature that could useful for teams is to allow user to fetch all existing Expecations in a MockServer.

This can be specially useful for those who deal with MockServer programatically, where the set up of MockServer in a particular state can be difficult without the code that makes the setup.

With this, people could share JSON files that can be used to setup other MockServer instances (via the PUT endpoint mentioned above), allowing exploratory testing sessions in a particularly complex Expectation setup, without having to run code that creates this setup programatically.

Describe alternatives you've considered
We could have a button on the UI that downloads a JSON file that represents all Expectations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant