Add new endpoint to retrieve user photos from Gravatar; implement parameter validation and comprehensive tests for various scenarios including output formats and error handling

This commit is contained in:
Eldad Fux
2025-10-22 10:06:45 +01:00
parent dfe87a0d37
commit 2fb560db37
5 changed files with 276 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
Use this endpoint to fetch a user's photo from Gravatar based on their email address. The API automatically generates the Gravatar URL using the user's email hash and provides standard image cropping options.
When width and height are specified, the image is resized accordingly. If both dimensions are 0, the API provides an image at original size. If dimensions are not specified, the default size is 100x100px.
This endpoint requires a valid user email address and will return a 404 if no Gravatar image is found for the user.