Skip to content

Record API requests like VCR #2350

@eccegordo

Description

@eccegordo

Feature request

Would it be possible to add a mechanism to quickly "record" API payloads to local JSON files?

In other words something like passthrough but with a flag to capture the API result and persist to a local log file that Mirage would understand and use if I turned passthrough mode off. Bonus points if it could dynamically build out scenario stubs that are route aware. Then end goal being where I could wire up some routes to an existing API using fetch and click around the app a bit, review the saved JSON, and take the development back offline, tweaking the "recorded" JSON as needed to make my mocks more flexible or dynamic.

Extra bonus points if there was some sort of integration with Postman collections.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions