Open atyminski opened 2 years ago
@natenho if you like the idea, I'm happy to continue the implementation.
@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?
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.
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 .