natenho / Mockaco

🐵 HTTP mock server, useful to stub services and simulate dynamic API responses, leveraging ASP.NET Core features, built-in fake data generation and pure C# scripting
https://natenho.github.io/Mockaco/
Other
335 stars 39 forks source link

GUI #102

Open atyminski opened 2 years ago

atyminski commented 2 years ago

Prerequisites

Description

Mockaco allows to edit mocks by editing files which requires using locally installed editor. Maintaining higher number of mocks becoming slightly complicated.

Proposed solution

A web based GUI/editor that helps to setup mocks, hosted by the Mockaco instance: _mockaco/gui

Monaco Editor could be used as response body editor that can help introduce syntax highlighting.

Alternatives

Additional context

I've prepared initial version just with hosted blazor app without any new functionality, you can find it here . This feature requires API implementation #66 .

atyminski commented 2 years ago

@natenho if you like the idea, I'm happy to continue the implementation.

natenho commented 2 years ago

@atyminski Awesome, go ahead! The syntax highlighting might be challenging, but it would be a great feature.

Besides, do you have any idea on how could we deploy the GUI? Should it be an option to the main binary (e.g. Mockaco --gui)? Or should it be a completely different tool?

atyminski commented 2 years ago

I added GUI as a build-in feature and it is hosted by Mockaco on `_mockaco/gui' endpoint when you start main binary, without any additional options - it seems to be the most convenient way to use it. We can decide later as it is another csproj 🙂 If it makes Mockaco "too heavy", we will move it to a separate binary.