Week 3: CrowdAlert API
Implement backend API for Crowdalert.
APIs to be implemented:
-
Image API - Create: Accept images via POST & some processing & generate thumbnails. Return id of the image
- Thumbnail: Return SVG thumbnail of the given image id. (~2KB) [https://github.com/technopagan/sqip]
- Fullsize: Return a scaled image according to the size mentioned in URL parameters
- Classify: Just expose the API endpoint, maybe use this model: [https://github.com/yahoo/open_nsfw] until we train our own.
-
Events API - View: Fetch firebase for a particular event using its ID
- Create: Create a new record on firebase database
-
Location API - Reverse Geocode: Reverse-Geocode a given latitude longitude
- Proximity: Use Google's API to search a particular area for emergency services [CAN BE DONE ON DEVICE]
-
Auth API - Generate a token for accessing other APIs [We are relying on client-side generation & server side authentication]
Edited by Joydeep Mukherjee