Docker-native app:
Mock-server for endpoints and WebSockets
It should be build with command
cd $APP_DIR
docker build . -t mock-serv
You can run it with
docker run -p 8044:8044 -p 5080:5080 -v $HOME:/data mock-serv
And use localhost machine as server with port 8044 for REST requests
And 5080 for WS connections
Endpoints on HTTP should be added to file with such:
{
"/login": {
"ok": {"a": "b"},
"error": {"error": {"message": "Some message"}}
}
}
Where key is endpoint and response is value. It should be located in $HOME.
File examples are in folder named examples
F.e. http://localhost:8044/login?result=ok will return you {"a":"b"}