API Server for CogniCity
- Refactored server just for data API (web content hosted separately)
- Merged REM API functionality into mainline server
- Added authentication to some endpoints using Auth0/JWT
- Added new functionality for data collection using GRASP Cards
- API Documentation moved to dedicated wiki: https://docs.petabencana.id/
- Refactored server module for better testability
- Added tests for endpoints using unit.js and mocha
- Added coverage for tests using Istanbull, nyc and coveralls
- Added integration tests on Travis, including against cognicity-schema
- Extended data format of cards data object to collect different types of data
- Merged changes from Chennai deployment, for better deployment in new cities
- Updated to use Node v8.1.4 with npm 5.0.3
- Pushed image url assignment to server
- Updated cards/ patch endpoint to stop potential overwriting of image url
- Card IDs generated as UUID by Postgres
- Added schema version to / endpoint
- Image upload changed to use AWS S3 signed links
- Added a default expire time to CAP output
- Add /floods/archive endpoint
- Added database log entry for card creation
- Added /floods/timeseries endpoint
- Added /reports/timeseries endpoint
- Added time window check on archive and time series endpoints
- Updated API definitions in swagger file
- Added Semarang instance for Indonesian deployment
- Fixed out of date link in README to list of releases
- Fixed bug in API (swagger-api.json) for flood archive and timeseries endpoints
- Added PATCH /reports/:id endpoint for "points"
- Updated documentation of Swagger files
- Updated Babel package
- Remove username field from GET /cards/:id
- Fix bug with time series endpoints
- Fix bug with expiry time in CAP format of floods/ endpoint
- Updated Moment (known vulnerability in v2.18.1)
- Test against PostgreSQL v10 (PostGIS 2.4)
- Remove ?format option from /reports endpoint
- Change floods endpoint to return new attributes column
- Requires cognicity-schema v3.0.7 or later
- Updated npm packages
- Add city query parameter to /floods/timeseries and /floods/archive endpoints
- Add time zone validation to all endpoints accepting timestamps
- Notifications of received reports are now run from the server (added for testing in v3.0.6)
- Add deployments for India
- Add /reports/:id/flag endpoint
- Added support for assessment cards