Get PDF files by Magento Webapi
Magento 2 comes with a modern REST interface. One of the advantages of the REST interface is that it can handle multiple response types. A client can request data from the server with a list of acceptable response formats. Out of the box Magento 2 supports two types. It comes with JSON and XML support. You can test it with a simple call to your local store.
1 |
curl -X GET --header "Accept: application/json" "http://<store-baseurl>/rest/default/V1/categories" |
If you omit the accept header the server will return JSON as…