feat(clients): upload document page

fixes: #265
This commit is contained in:
Jivjyot Singh
2019-12-01 23:20:51 +03:00
committed by Abhay Chawla
parent c2bd5d1444
commit 357b3731cc
7 changed files with 99 additions and 51 deletions
+4
View File
@@ -105,6 +105,10 @@ export class ClientsService {
return this.http.get(`/clients/${parentEntityId}/documents/${documentId}/attachment`, { responseType: 'blob' });
}
uploadClientDocument(clientId: string, documentData: any) {
return this.http.post(`/clients/${clientId}/documents`, documentData);
}
deleteClientDocument(parentEntityId: string, documentId: string) {
return this.http.delete(`/clients/${parentEntityId}/documents/${documentId}`);
}