Tag Archives: JSON

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