- npm run seed
- npm run build
- npm run start
- Uncomment mongoose, GallerySchema, and module.exports in server/db/index.js
- Use the legacy routes for queries
- Uncomment Client, esclient, and module.exports in server/db/index.js
- Uncomment esmodels in controllers.js and comment mdbmodels
- Uncomment Elasticsearch data transformation in controllers.getAll
- Uncomment mdbmodels in controllers.js and comment esmodels
- Comment Elasticsearch data transformation in controllers.getAll
req.params
{
listingId: 5643a1f9766bcf0fc0b26f14
}
Response (Content-Type: application/json)
{
photos: [
{
photo_url_path: String,
caption: String,
order: Number,
space_type: String,
is_main: Boolean
},
...
]
}
req.params
{
listingId: 5643a1f9766bcf0fc0b26f14
}
Body (Content-Type: application/json)
{
photo_url_path: String,
caption: String,
order: Number,
space_type: String,
is_main: Boolean
}
req.params
{
listingId: 5643a1f9766bcf0fc0b26f14,
photoId: 56439adc766bcf49a0639992
}
Body (Content-Type: application/json) Can have any of the following optional properties
{
photo_url_path: String,
caption: String,
order: Number,
space_type: String,
is_main: Boolean
}
req.params
{
listingId: 5643a1f9766bcf0fc0b26f14,
photoId: 56439adc766bcf49a0639992
}