This service provides the photo url and meta data.
- https://github.com/space-work/review-service
- https://github.com/space-work/amenities-service
- https://github.com/space-work/contact-widget-service
- https://github.com/space-work/workspace-service
- https://github.com/space-work/location-service
- https://github.com/space-work/workspace-description-service
- https://github.com/space-work/photos-service
- https://github.com/space-work/nearby-workspaces
An nvmrc
file is included if using nvm.
- Node 6.13.0
- Mongo 4.4.1
First time set up:
Run seeding scripts (mongo must be installed and running)
npm run seed
Start server
npm run server:dev
From within the root directory:
npm install -g webpack
npm install
/api/photos
Photo data by photo id - /api/photos/:id
Photos data by workspace id - /api/photos/workspace/:workspaceId
New photo data - /api/photos/
{
"url": "http://www.imageurl.com/",
"description": "Description goes here"
}
Update photo url and/or photo description - /api/photos/:id
{
"url": "http://www.imageurl.com/",
"description": "Description goes here"
}
Photo data by photo id - /api/photos/:id
All workspace photo data - /api/photos/workspace/:workspaceId