Visite documentación online aquí, hospedada por GitHub Pages.
Las Colecciones MongoDB están referenciadas entre si de la siguiente manera:
Las cuales están compuestas por las siguientes propiedades:Fabricante: {
id: String,
nombre: String,
direccionId: String,
productos: List<Productos>
}
Producto: {
id: String,
nombre: String,
categorias: List<Categoria>,
fabricanteId: String
}
Categoria: {
id: String,
nombre: String,
productos: List<Producto>
}
Direccion: {
id: String,
calle: String,
numeroEstablecimiento: Integer,
entreCalles: String,
municipio: String,
estado: String,
pais: String,
ZIP: Integer
}
{
"_links": {
"categoria": {
"href": "http://localhost:8080/categorias{?page,size,sort}",
"templated": true
},
"producto": {
"href": "http://localhost:8080/productos{?page,size,sort}",
"templated": true
},
"direccion": {
"href": "http://localhost:8080/direcciones{?page,size,sort}",
"templated": true
},
"fabricante": {
"href": "http://localhost:8080/fabricantes{?page,size,sort}",
"templated": true
},
"profile": {
"href": "http://localhost:8080/profile"
}
}
}
"http://localhost:8080/producto"
"http://localhost:8080/fabricante"