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

add http API interface #110

Open wlclass opened 1 year ago

wlclass commented 1 year ago

Added an http api to the project to manage the template's three interfaces:

POST or GET: /{Endpoint}/list

POST: /{Endpoint}/remove

POST: /{Endpoint}/update

The Endpoint can be configured in MockacoOptions, and a simple authentication is added for the api interface, which requires a security key to be provided through the token query parameter.

This is a sloppy pr, but hopefully it will help.

Associated issue: https://github.com/natenho/Mockaco/issues/66 https://github.com/natenho/Mockaco/issues/102

wlclass commented 1 year ago

@natenho Do you have any ideas?

natenho commented 1 year ago

Hi @wlclass, I'm going to review as soon as possible and we can discuss about it! Thank you for your contribution!!