mock_data_server
                                
                                
                                
                                    mock_data_server copied to clipboard
                            
                            
                            
                        Ready-to-use mock data server. You can create a HTTP methods which returns mock data.
Mock Server
Ready-to-use mock data server. You can quickly create HTTP API's which returns mock data.
Usage (How to create HTTP API with mock data)
There are 3 way to generate mock data:
- 
1 - RandomDataGenerator
You can generate fake response with random data.
See this DEMO method: "MockServerDemoController class --> simpleFakeData() method"
 
- 
2 - Dynamic Response
The server will response you with the data which you send it in a special field.
You don't even need to write a code for that.
See this DEMO method: "MockServerDemoController class --> dynamicResponseXML() method"
 
- 
3 - Response from file
You can return any file as a response.
See this DEMO method: "MockServerDemoController class --> resultFromFile() method"
 
HTTP Request and Response Logs
You can check the request and response from:
- 
Only latest 100 request and response:
http://localhost:8088/actuator/httpexchanges
 - 
Server console logs
 
Swagger Docs
You may need to test mock services directly from HTML (Web) UI of Swagger.
- 
Swagger HTML (Web) UI
http://localhost:8088/swagger-ui.html