Use PostMan to post JSON to laravel

  1. Set web method to POST
  2. Add to the Headers:
    1. a key named: Accept with value application/json
    2. a key named: Content-Type with value application/json
  3. Add the JSON data to the raw area of Body of Postman.
  4. Click send.

Headers:

postman_laravel

Body:

postman_laravel_2

 

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s