Skip to content

Commit

Permalink
Resolve the merging issue in api service
Browse files Browse the repository at this point in the history
  • Loading branch information
CHAITANYA-IN committed Sep 13, 2021
1 parent cc0231a commit 8b5da0e
Showing 1 changed file with 0 additions and 76 deletions.
76 changes: 0 additions & 76 deletions ArduinoFrontend/src/app/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,82 +372,6 @@ export class ApiService {
});
}

existLTIURL(id: string, token: string) {
if (token) {
return this.http.get(`${this.url}api/lti/exist/${id}`, {
headers: new HttpHeaders({
'Content-Type': 'application/json',
'Authorization': `Token ${token}`,
'Access-Control-Allow-Origin': '*',
})
});
} else {
return this.http.get(`${this.url}api/lti/exist/${id}`, {
headers: new HttpHeaders({
'Content-Type': 'application/json',
'Access-Control-Allow-Origin': '*',
})
});
}
}

saveLTIDetails(id: string, token: string, data: any) {
return this.http.post(`${this.url}api/lti/build/`, data, {
headers: new HttpHeaders({
'Content-Type': 'application/json',
'Authorization': `Token ${token}`,
'Access-Control-Allow-Origin': '*',
})
});
}

removeLTIDetails(id: string, token: string) {
return this.http.delete(`${this.url}api/lti/delete/${id}`, {
headers: new HttpHeaders({
'Authorization': `Token ${token}`,
})
});
}

updateLTIDetails(id: string, token: string, data: any) {
return this.http.post(`${this.url}api/lti/update/`, data, {
headers: new HttpHeaders({
'Content-Type': 'application/json',
'Authorization': `Token ${token}`,
'Access-Control-Allow-Origin': '*',
})
})
}

submitCircuit(token: string, data: any) {
if (token) {
return this.http.post(`${this.url}api/lti/submit/`, data, {
headers: new HttpHeaders({
'Content-Type': 'application/json',
'Authorization': `Token ${token}`,
'Access-Control-Allow-Origin': '*',
})
});
} else {
return this.http.post(`${this.url}api/lti/submit/`, data, {
headers: new HttpHeaders({
'Content-Type': 'application/json',
'Access-Control-Allow-Origin': '*',
})
});
}
}

getSubmissions(consumerKey: string, token: string) {
return this.http.get(`${this.url}api/lti/submissions/${consumerKey}`, {
headers: new HttpHeaders({
'Content-Type': 'application/json',
'Authorization': `Token ${token}`,
'Access-Control-Allow-Origin': '*',
})
})
}

storeSimulationData(id: number, token: string, data: Object) {
return this.http.post(`${this.url}api/save/arduinodata/${id}`, data, {
headers: this.httpHeaders(token),
Expand Down

0 comments on commit 8b5da0e

Please sign in to comment.