RP Mess Image API
Upload Image to Drive
Request
-
Method: POST
-
Can be accessed by ["STUDENT","STAFF", "ADMIN", "SUPERADMIN"]
-
URL:
/api/image
-
Headers:
- Authorization: Bearer
<access_token>
- Authorization: Bearer
-
Body: form-data:
- image:
<image_file>
Content-Type: multipart/form-data
- image:
Response
- Status: 200 OK
- Body:
{ "success": true, "data": { "imgUrl": "https://drive.google.com/uc?id/1 }, "error": null }