Skip to content

Add support to error response on specific endpoints #1

@javaherisaber

Description

@javaherisaber

Problem statement

I want to return error response for a specific endpoint eg. 500 error

Possible solution

Just like apiIncludeIntoMock array, we can pass another object to define which endpoints to show error

eg. a list of this pair
"[POST] customer/cart/{id}/update2" to 500

Alternative solutions

We can also provide a way to pass error response body for each error code into MockFit constructor
so that we can use it to return error body

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions