Skip to content

With Mocking, adding a form body on a POST gives an empty response #9

@ScotterC

Description

@ScotterC

When requesting:

curl -X "POST" "http://localhost:3000/api/v0/endpoint" \
     -H 'Accept: application/json' \
     -H 'Apicraft-Mock: true' 

I get a mocked response that matches the contract spec.

When requesting:

curl -X "POST" "http://localhost:3000/api/v0/endpoint" \
     -H 'Accept: application/json' \
     -H 'Apicraft-Mock: true' \
     -d $'{}'

Returns a 200 OK (route isn't implemented) but no data in the response

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