Skip to content

Add support to error response on specific endpoints #1

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions