You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
In cases Camouflage can not find a mockfile for an invoked endpoint, it sends following default response
{
"error": "Not Found"
}
User should, however, be able to override this default response with custom default responses at global level and at the API level.
Describe the solution you'd like
Implementation as follows:
User invokes a GET call to /default/error/response
Corresponding mock file is evaluated as ${MOCK_DIR}/default/error/response/GET.mock
Camouflage can not find the mock file, however it finds a directory ${MOCK_DIR}/default
Camouflage determines ${MOCK_DIR}/default/__/GET.mock as the closest match for the invoked API.
Camouflage looks for an API level default response in the closest match.
If above mock file too, is unavailable, Camouflage looks for a global default response ${MOCK_DIR}/__/GET.mock
Finally, if all determined mock files are unavailable, Camouflage sends its inbuilt default response as shown above.
Describe alternatives you've considered
NA
Additional context
NA
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
In cases Camouflage can not find a mockfile for an invoked endpoint, it sends following default response
User should, however, be able to override this default response with custom default responses at global level and at the API level.
Describe the solution you'd like
Implementation as follows:
/default/error/response
${MOCK_DIR}/default/error/response/GET.mock
${MOCK_DIR}/default
${MOCK_DIR}/default/__/GET.mock
as the closest match for the invoked API.${MOCK_DIR}/__/GET.mock
Describe alternatives you've considered
NA
Additional context
NA
The text was updated successfully, but these errors were encountered: