Photos are attached to places. Each photo record stores the ID of the place it belongs to, a URL pointing to the image, and an optional description. You can retrieve all photos for a place in one request using theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/jparra-amell/api_solsql/llms.txt
Use this file to discover all available pages before exploring further.
place/{p_place_id} route.
Endpoints
GET /api/Photos
Returns all photos in the system.Unique identifier for the photo.
ID of the place this photo is attached to.
Public URL of the image.
Optional human-readable caption for the photo.
GET /api/Photos/
Returns a single photo by its ID.Path parameters
The
photo_id of the photo to retrieve.GET /api/Photos/place/
Returns all photos attached to a specific place.Path parameters
The ID of the place whose photos you want to retrieve.
POST /api/Photos
Creates a new photo record attached to a place.Request body
The ID of the place this photo belongs to.
The public URL of the image.
An optional caption or description for the photo.
PUT /api/Photos/
Updates the URL and description of an existing photo. Theplace_id is not updated.
Path parameters
The
photo_id of the photo to update.Request body
The new URL for the image.
The updated caption or description.
DELETE /api/Photos/
Deletes a photo by its ID.Path parameters
The
photo_id of the photo to delete.Error codes
| Status | Meaning |
|---|---|
| 200 | Request succeeded. |
| 204 | Photo deleted successfully (no body). |
| 404 | The requested photo or place has no photos. |
| 500 | A server or database error occurred. The response body contains message and detail fields. |