-
Install and start localstack
-
Install the aws cli
-
Run
./localstack-create-bucket.sh
-
Run
npm run build
,npm run deploy
and thennpm run start:localstack
-
If you're running VS Code with the REST Client Extenstion and configured this ennvironment:
"local": {
"protocol": "http",
"host": "localhost",
"port": "4004"
}
you should be able to use requests defined in srv/tests/media.http
-
Clone this repository in SAP Web IDE
-
Build the project & run the service
-
Add an image
POST: https://host/media/Pictures
Request Headers:
Content-Type: application/json
Request Body : <JSON>
PUT: https://host/media/Pictures(fe5a9812-d3a0-44a2-9cc6-30adbfa15595)/content
Request Headers:
Content-Type: image/png
Request Body : <MEDIA>
- Get the image
GET: https://host/media/Pictures(fe5a9812-d3a0-44a2-9cc6-30adbfa15595)/content