forked from Yara724/api
lookup of person role added + inquiry by unique identifier + put driver id in payload
This commit is contained in:
@@ -186,6 +186,30 @@ export class LookupsController {
|
||||
return await this.lookupsService.getVehicleKinds();
|
||||
}
|
||||
|
||||
@Get("person-role")
|
||||
@ApiOperation({
|
||||
summary: "Fanavaran person role lookup",
|
||||
description:
|
||||
"Returns person role codes from common/code-list/person-role.",
|
||||
})
|
||||
@ApiOkResponse({
|
||||
description: "Returns Fanavaran person role lookup data",
|
||||
schema: {
|
||||
type: "array",
|
||||
items: {
|
||||
type: "object",
|
||||
properties: {
|
||||
Caption: { type: "string" },
|
||||
Id: { type: "number" },
|
||||
IsActive: { type: "number" },
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
async getPersonRole() {
|
||||
return await this.lookupsService.getPersonRole();
|
||||
}
|
||||
|
||||
@Get("inquiry-by-vin")
|
||||
@ApiOperation({
|
||||
summary: "Fanavaran vehicle inquiry by VIN",
|
||||
|
||||
Reference in New Issue
Block a user