|
|
@ -88,7 +88,7 @@ fastify.get("/api/getAllDepartments/:officeName/:city", {
|
|
|
|
fastify.get("/api/getTeamMembers/:officeName/:city/:departmentId", {
|
|
|
|
fastify.get("/api/getTeamMembers/:officeName/:city/:departmentId", {
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
description: "Get all team members under a specific department",
|
|
|
|
description: "Get all team members under a specific department",
|
|
|
|
tags: ["Installation"],
|
|
|
|
tags: ["Department"],
|
|
|
|
summary: "Get Team Members by Department ID",
|
|
|
|
summary: "Get Team Members by Department ID",
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
|
type: "object",
|
|
|
|
type: "object",
|
|
|
@ -154,6 +154,24 @@ fastify.get("/api/getAllDepartments/:officeName/:city", {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handler: installationController.getQuotationsByInstallationAndTeamMember
|
|
|
|
handler: installationController.getQuotationsByInstallationAndTeamMember
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.route({
|
|
|
|
|
|
|
|
method: "GET",
|
|
|
|
|
|
|
|
url: "/api/installationsTeammembers/:installationId",
|
|
|
|
|
|
|
|
schema: {
|
|
|
|
|
|
|
|
tags: ["Installation"],
|
|
|
|
|
|
|
|
description: "This is for fetching team members for a given installation",
|
|
|
|
|
|
|
|
summary: "This is for fetching team members for a given installation",
|
|
|
|
|
|
|
|
params: {
|
|
|
|
|
|
|
|
type: "object",
|
|
|
|
|
|
|
|
properties: {
|
|
|
|
|
|
|
|
installationId: { type: "string" }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handler: installationController.getInstallationTeamMembers
|
|
|
|
|
|
|
|
});
|
|
|
|
fastify.post("/api/assignTeammember/:installationId", {
|
|
|
|
fastify.post("/api/assignTeammember/:installationId", {
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
description: "Assign a team member to an installation's quotation",
|
|
|
|
description: "Assign a team member to an installation's quotation",
|
|
|
|