Retrieve specific image from S3
GET/truckers/images/:file
Endpoint to retrieve a specific image stored in Amazon S3 using its name in the URL path.
Requirements:
- Valid JWT authentication in the Authorization header
- Exact filename including extension
Usage Example:
GET /truckers/images/driver_profile_123.jpg
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Request
Responses
- 200
- 404
- 500
Image successfully retrieved from S3.
The response Content-Type matches the requested image type.
Successful response example:
HTTP/1.1 200 OK
Content-Type: image/jpeg
[binary image data]
Image not found
Error getting image