Skip to content
Snippets Groups Projects
Commit dc15a6a5 authored by Ajay Nishad's avatar Ajay Nishad
Browse files

feat: implement rating api

parent 13b62ba5
No related branches found
No related tags found
No related merge requests found
{
"data": $.responses.{
"context": context,
"message": message
}[]
}
{
"context": context,
"message": message
}
......@@ -36,4 +36,10 @@ export class GCLController {
const statusResult = await this.service.status(body);
return statusResult;
}
@httpPost('rating')
public async rating(@requestBody() body: any): Promise<any> {
const statusResult = await this.service.rating(body);
return statusResult;
}
}
......@@ -52,4 +52,12 @@ export class GCLService {
return "In Progress";
}
async rating(body: any) {
const payload = await this.tlService.transform(body, "rating");
const psResponse = await this.psClientService.post(payload);
const response = await this.tlService.transform(psResponse, "on_rating");
return response;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment