The Reactions API lets users express a reaction to a place using aDocumentation 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.
reaction_type string value. Each reaction links a single user to a single place. You can look up or remove a reaction using either its auto-generated id or the user_id + place_id combination, which is useful when you know the context but not the reaction’s primary key.
GET /api/Reactions
Returns all reactions in the system.Response
Unique identifier for the reaction.
ID of the user who reacted.
Display name of the user.
ID of the place that was reacted to.
Display name of the place.
The type of reaction (e.g.,
"like", "love").ISO 8601 timestamp of when the reaction was recorded.
GET /api/Reactions/
Returns a single reaction by its ID.Path parameters
The unique ID of the reaction to retrieve.
Response
Returns a singleReactions object. See field descriptions under GET /api/Reactions.
Error codes
| Code | Description |
|---|---|
| 404 | No reaction found with the given id. |
| 500 | Internal server error. |
GET /api/Reactions/user//place/
Returns the reaction a specific user recorded for a specific place. Use this endpoint to check whether the current user has already reacted to a place before showing a react button.Path parameters
The ID of the user.
The ID of the place.
Response
Returns a singleReactions object. See field descriptions under GET /api/Reactions.
Error codes
| Code | Description |
|---|---|
| 404 | No reaction found for the given userId and placeId. |
| 500 | Internal server error. |
POST /api/Reactions
Records a new reaction from a user on a place.Request body
ID of the user posting the reaction.
ID of the place being reacted to.
The reaction value (e.g.,
"like", "love").Response
Returns200 OK with a JSON success message:
Error codes
| Code | Description |
|---|---|
| 500 | Internal server error. |
PUT /api/Reactions/
Updates thereaction_type of an existing reaction.
Path parameters
The ID of the reaction to update.
Request body
The new reaction value.
Response
Returns200 OK with a JSON success message:
Error codes
| Code | Description |
|---|---|
| 500 | Internal server error. |
DELETE /api/Reactions/
Deletes a reaction by its ID.Path parameters
The ID of the reaction to delete.
Response
Returns200 OK with a JSON success message:
Error codes
| Code | Description |
|---|---|
| 500 | Internal server error. |
DELETE /api/Reactions/usuario//lugar/
Deletes a reaction identified by the user and place combination. Use this when you know the user and place context but not the reaction’s primary key.Path parameters
The ID of the user whose reaction you want to delete.
The ID of the place the reaction was recorded on.
Response
Returns204 No Content on successful deletion.
Error codes
| Code | Description |
|---|---|
| 400 | Database error — could not delete the reaction (e.g., constraint). |
| 500 | Internal server error. |