Cards
MapaKalamidad report cards for disaster events. Note: authentication is required to make updates to cards.
Request Format
Note on card_data
Card data requires the object report_type
to exist. Where disaster_type
is set to 'flood' then the object flood_depth
should also exist adjacent to report_type
. Where the disaster_type
is 'prep' then report_type
should be one of the types as specified in server config.js.
For example a card with flood data including flood_depth:
GET /cards/:cardId
Retrieve details of a card:
Here is a simple call to GET a card:
The card was found:
The card does not exist:
PUT /cards/:cardId
Update a card with details a disaster event report:
Here is a simple call to PUT a card:
Card was successfully created:
The card does not exist:
The report already exists for the card:
GET /cards/:cardId/images
GET a signed S3 URL to upload a card report, this must be done after the card report has been created and only one image can exist for a given card.
NOTE: After an image is submitted a server-side process shrinks the image to a standard size and there may be a small time lag of a few seconds before the image goes "live".
Here is a simple call to GET a new signed S3 URL for image upload:
Signed S3 URL successfully generated:
Last updated