Hey, this is a basic mock HTTP server built in LINQPad. It's nothing fancy, but it does the trick.
- Lets you set up mock routes with HTTP methods and responses.
- Logs incoming requests. Useful to see what's hitting the server.
- Pop the code into LINQPad.
- Run it.
- Add your routes in the grid.
- Hit the "Start" button.
- Make requests to
http://localhost:8080/your_route
. - See logs for any hits.
- It uses
Microsoft.AspNetCore.Mvc.NewtonsoftJson (6.0.12)
so make sure it's added. - If it's not working, check if something else is hogging port 8080.
- Adding JSON response config.
- Letting you pick the port.