uploadMemory
@PostMapping("/upload-memory")
public boolean uploadMemory(@RequestHeader("authorization")
String authorizationToken,
@RequestBody
Map<String,Object> payload)
throws AuthorizationFailedException,
AuthenticationFailedException,
InternalServerException,
UploadNotCompleteException
API end-point to upload memory.
Access as - [url]/upload-api/upload-memory
- Parameters:
authorizationToken
- The firebase token/JWT which identifies the user
payload
- The payload with the request.
- Returns:
- True in case the upload is successful.
- Throws:
AuthorizationFailedException
- Thrown in case the JWT doesn't represent the said user
AuthenticationFailedException
- Thrown in case JWT isn't valid
InternalServerException
- Thrown in case there is any internal server error
UploadNotCompleteException
- Thrown in case the upload couldn't be completed