|
|
@ -123,17 +123,27 @@ fastify.post('/api/stores', {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.post("/api/createwaterlevelSensor", {
|
|
|
|
fastify.post("/api/createwaterlevelSensor/:storeId", {
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
description: "This is for creating waterlevel Sensor",
|
|
|
|
description: "This is for creating waterlevel Sensor",
|
|
|
|
tags: ["Store-Data"],
|
|
|
|
tags: ["Store-Data"],
|
|
|
|
summary: "This is for creating waterlevel Sensor",
|
|
|
|
summary: "This is for creating waterlevel Sensor",
|
|
|
|
|
|
|
|
params: {
|
|
|
|
|
|
|
|
required: ["storeId"],
|
|
|
|
|
|
|
|
type: "object",
|
|
|
|
|
|
|
|
properties: {
|
|
|
|
|
|
|
|
storeId: {
|
|
|
|
|
|
|
|
type: "string",
|
|
|
|
|
|
|
|
description: "storeId",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
body: {
|
|
|
|
body: {
|
|
|
|
type: "object",
|
|
|
|
type: "object",
|
|
|
|
|
|
|
|
|
|
|
|
properties: {
|
|
|
|
properties: {
|
|
|
|
storeId: { type: "string" },
|
|
|
|
|
|
|
|
hardwareId: { type: "string" },
|
|
|
|
hardwareId: { type: "string" },
|
|
|
|
type: { type: "string" },
|
|
|
|
type: { type: "string" },
|
|
|
|
indate: { type: "string" },
|
|
|
|
indate: { type: "string" },
|
|
|
|