HomeUniteUs icon indicating copy to clipboard operation
HomeUniteUs copied to clipboard

ApiWrapper: support image upload and download by user type and subject

Open tylerthome opened this issue 4 years ago • 1 comments

Overview

To enable hosts to share photos of their home and of themselves, add methods to the ApiWrapper supporting listing images and file transfer

Action Items

Add the following client-side API methods:

  • [x] POST /api/host/images/{subject}, where request body has the shape {email: string}
  • [x] POST /api/uploadImage, wrapper should accept a File, an email and subject as input, request body should be an instance of FormData including email and and the file
  • [x] GET /api/host/images/download/{fileId} where response body is Blob

Resources/Instructions

See following comments

tylerthome avatar Sep 08 '20 19:09 tylerthome

Resolved by PR #251

tylerthome avatar Oct 07 '20 01:10 tylerthome