zamoroka / module-webapi-documents
Magento 2 module: Working with documents, using REST API
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 1
Open Issues: 0
Type:magento2-module
Requires
- php: ~7.1.3||~7.2.0||~7.3.0
- magento/framework: ^102.0.3
Requires (Dev)
- magento/magento-coding-standard: ^5.0
- squizlabs/php_codesniffer: ^3.5.0
This package is auto-updated.
Last update: 2025-04-29 01:21:52 UTC
README
Upload PDF using curl
curl --location --request POST '<host>/rest/V1/webapidocuments/upload' \
--header 'Authorization: Bearer <bearer token>' \
--header 'Content-Type: multipart/form-data; boundary=----something' \
--form 'filename=@<directory>/<filename>.pdf'
Upload PDF using HTTP request
POST /rest/V1/webapidocuments/upload HTTP/1.1
Host: <host>
Authorization: Bearer <bearer token>
Content-Type: multipart/form-data; boundary=----something
----something
Content-Disposition: form-data; name="filename"; filename="<filename>.pdf"
Content-Type: application/pdf
(data)
----something