Partial Mocking

In some scenarios (legacy systems, complex 3rd party API) you may want to mock only part of the exiting API and forward the rest to the original services.

You can mock partially any API using the proxy feature.

Proxy Feature Example

Mocked endpoints:

{
	"description": "Default endpoint for the root of the site",
	"request": {
		"method": "GET",
		"path": "/proxy/api/login"
	},
	"response": {
		"statusCode": 200,
		"body": "Authenticated"
	},
	"control": {
		"priority": 10,
	}
}

Forwarded requests:

{
	"description": "Example for proxy usage",
	"request": {
		"method": "GET",
		"path": "/proxy/api"
	},
	"control": {
		"proxyBaseURL":"http://www.mocky.io/v2/57e1b4d1110000b90556f51c",
        "priority": 1,
	}
}