Skip to content

Function getBody() is not able to read body of a post request sent as application/json  #7

@ibrahimesseddyq

Description

@ibrahimesseddyq

I tried to to interact with the mvc using postman and i findout that it cant read json formatted request
You need to check if the upcoming request is post and sent as application/json, and then read the body request using 'file_get_contents('php://input'); in Request getBody Method then parse it into object

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions