feat: add create view survey page (#1247)

Fixes: #580
This commit is contained in:
Shubhankar Bhadra
2020-10-16 21:09:57 +05:30
committed by GitHub
parent e3b7f5799d
commit 2b5341aa2c
10 changed files with 278 additions and 2 deletions
+9
View File
@@ -221,6 +221,15 @@ export class SystemService {
return this.http.post('/surveys', survey);
}
/**
* @param {string} reportId Survey ID.
* @returns {Observable<any>} Survey.
*/
getSurvey(surveyId: string): Observable<any> {
return this.http.get(`/surveys/${surveyId}?template=true`);
}
/**
* @returns {Observable<any>} Fetches Jobs.
*/