image_upload
/api/product/image_upload
upload image for product using product_id, the image will convert to webp.
the schema of image url look like this:
https://image.anyway.network/products/{uuid_for_img}
Auth
this endpoint require user's token for verify. Please put user's bearer token in header. you can check the example at Request part.
Request
curl --location 'https://anyway-backend-transaction-oq7yqdggzq-de.a.run.app/api/product/image_upload' \
--header 'Authorization: Bearer {token}' \
--form 'file=@"{filename}.jpg"'
Response
{
"filename": {filename},
"url": {image_url}
}