|
|
|
@ -154,6 +154,37 @@ fastify.post("/api/createwaterlevelSensor/:storeId", {
|
|
|
|
|
handler: storeController.createwaterlevelSensor,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
fastify.post("/api/installwaterlevelSensor/:storeId", {
|
|
|
|
|
schema: {
|
|
|
|
|
description: "This is for installing waterlevel Sensor",
|
|
|
|
|
tags: ["Store-Data"],
|
|
|
|
|
summary: "This is for installing waterlevel Sensor",
|
|
|
|
|
params: {
|
|
|
|
|
required: ["storeId"],
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
storeId: {
|
|
|
|
|
type: "string",
|
|
|
|
|
description: "storeId",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
body: {
|
|
|
|
|
type: "object",
|
|
|
|
|
|
|
|
|
|
properties: {
|
|
|
|
|
|
|
|
|
|
hardwareId: { type: "string" },
|
|
|
|
|
dateofinstallation: { type: "string" },
|
|
|
|
|
customerId: { type: "string" },
|
|
|
|
|
installedby: { type: "string" }
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
handler: storeController.installwaterlevelSensor,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
fastify.post("/api/qccheckwaterlevelSensor/:hardwareId", {
|
|
|
|
|
schema: {
|
|
|
|
|
description: "This is for checking waterlevel Sensor",
|
|
|
|
|