GET /utils/{id}
Get item by ID.
Retrieves the details of a specific item by its unique identifier, ensuring the requester has appropriate ownership or administrative permissions.
Endpoint
GET /utils/{id}
Parameters
| Name | Type | Description |
|---|---|---|
| session | SessionDep | The database session dependency used to perform the lookup operation. |
| current_user | CurrentUser | The authenticated user object used to verify ownership or superuser status. |
| id | uuid.UUID | The unique UUID of the item to be retrieved from the database. |
Response
| Status | Description |
|---|---|
| 200 | The item was successfully found and the user has permission to view it. Returns ItemPublic. |
| 404 | No item was found matching the provided ID. Returns JSON. |
| 403 | The authenticated user is not a superuser and does not own the requested item. Returns JSON. |