FridgeRadar models the physical layout of your home as a structured three-level hierarchy. At the top sits the Hogar (household) — a shared space that multiple users can belong to. Within each hogar you define Zonas (zones) that represent distinct storage areas such as a refrigerator, pantry, or freezer. Each zona is then subdivided into Estantes (shelves) that map to a concrete location where an item physically lives. Every inventory entry is ultimately anchored to a specific estante, making it straightforward to answer the question “where exactly did I put that?”Documentation Index
Fetch the complete documentation index at: https://mintlify.com/EstefanoARG/FridgeRadar/llms.txt
Use this file to discover all available pages before exploring further.
The Three-Level Hierarchy
Hogar
A hogar is the root of all FridgeRadar data. When you create a hogar you become its admin, and you can invite others to join through a unique invitation code.| Field | Type | Description |
|---|---|---|
id_hogar | int | Auto-generated primary key |
nombre | str | Display name for the household |
codigo_invitacion | str | null | Unique code others use to join |
fecha_creacion | datetime | Timestamp of household creation |
Creating a Hogar
Member Management
Users are linked to hogares through the UsuarioHogar join record. Every membership carries a role that controls what the member can do.Creating a Membership (UsuarioHogarCreate)
| Field | Type | Description |
|---|---|---|
id_usuario | int | The user to add |
id_hogar | int | The target household |
rol | str | Role assigned to the member (default "miembro") |
Membership Record (UsuarioHogarResponse)
| Field | Type | Description |
|---|---|---|
id_usuario_hogar | int | Primary key of the membership record |
id_usuario | int | Foreign key to the user |
id_hogar | int | Foreign key to the household |
rol | str | "admin" or "miembro" |
fecha_union | datetime | When the user joined |
Only a member with
rol: "admin" can rename the hogar, remove other members, or delete the household entirely.Member endpoints
| Method | Path | Description |
|---|---|---|
POST | /api/v1/hogares/{id_hogar}/miembros | Add a member to the household |
GET | /api/v1/hogares/{id_hogar}/miembros | List all members |
DELETE | /api/v1/hogares/{id_hogar}/miembros/{id_usuario_hogar} | Remove a member |
Invitation Code System
Every hogar is assigned a short, human-readablecodigo_invitacion at creation time. Share this code with household members so they can join without needing an admin to manually add them.
Share the code
The hogar admin copies the
codigo_invitacion from the household detail screen and sends it to the person they want to invite.Recipient joins
The recipient calls
POST /api/v1/hogares/unirse with the code. They are added as a "miembro" automatically.Zona
A zona represents a named storage area inside the hogar. Thetipo field categorises it (e.g. "heladera", "despensa", "freezer"), while the optional temperature fields let you record the operating range of refrigerated or frozen spaces.
| Field | Type | Description |
|---|---|---|
id_zona | int | Auto-generated primary key |
id_hogar | int | The parent household |
nombre | str | Human-readable name (e.g. “Heladera Principal”) |
tipo | str | Category of storage area |
icono | str | null | Icon identifier for the UI |
temperatura_min | float | null | Minimum operating temperature (°C) |
temperatura_max | float | null | Maximum operating temperature (°C) |
Estante
An estante is a specific shelf within a zona. Theposicion_vertical integer defines its stacking order from top to bottom, so the UI can render shelves in the correct physical sequence. color_ui accepts any valid CSS colour string and is used to visually distinguish shelves in the interface.
| Field | Type | Description |
|---|---|---|
id_estante | int | Auto-generated primary key |
id_zona | int | The parent zone |
nombre | str | Shelf name (e.g. “Cajón de verduras”) |
posicion_vertical | int | Stacking order (lower = higher up) |
color_ui | str | null | CSS colour for visual identification |
API Overview
| Method | Path | Description |
|---|---|---|
POST | /api/v1/hogares/ | Create a household |
GET | /api/v1/hogares/ | List my households |
GET | /api/v1/hogares/{id_hogar} | Get household details |
PATCH | /api/v1/hogares/{id_hogar} | Update household name |
DELETE | /api/v1/hogares/{id_hogar} | Delete a household |
Authentication
Learn how to obtain and use Bearer tokens to authenticate all household API calls.
Hogares API
Full reference for every household, member, and invitation endpoint.
Zonas & Estantes API
Reference for creating, listing, updating, and deleting zones and shelves.