|
|
@ -566,23 +566,20 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
fastify.route({
|
|
|
|
fastify.route({
|
|
|
|
method: "POST",
|
|
|
|
method: "GET",
|
|
|
|
url: "/api/validateRange",
|
|
|
|
url: "/api/validateRange/:hardwareId/:tankhardwareId",
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Tank"],
|
|
|
|
tags: ["Tank"],
|
|
|
|
description: "Validate tank height range",
|
|
|
|
description: "Validate tank height range",
|
|
|
|
summary: "Validate tank height range",
|
|
|
|
summary: "Validate tank height range",
|
|
|
|
body: {
|
|
|
|
params: {
|
|
|
|
type: "object",
|
|
|
|
type: "object",
|
|
|
|
properties: {
|
|
|
|
properties: {
|
|
|
|
tankhardwareId: { type: "string" },
|
|
|
|
hardwareId: { type: "string" },
|
|
|
|
hardwareId: { type: "string" }
|
|
|
|
tankhardwareId: { type: "string" }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
required: ["tankhardwareId"]
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
required: ["hardwareId", "tankhardwareId"]
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handler: tanksController.validateTankHeight
|
|
|
|
handler: tanksController.validateTankHeight
|
|
|
|
});
|
|
|
|
});
|
|
|
|