|
|
@ -6,18 +6,18 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
|
|
|
|
|
|
|
fastify.route({
|
|
|
|
fastify.route({
|
|
|
|
method: "POST",
|
|
|
|
method: "POST",
|
|
|
|
url: "/api/addTanks/:customerId",
|
|
|
|
url: "/api/addTanks/:InstallerId",
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Tank"],
|
|
|
|
tags: ["Tank"],
|
|
|
|
description: "This is for cretae New Tank",
|
|
|
|
description: "This is for cretae New Tank",
|
|
|
|
summary: "This is for Create New Tank.",
|
|
|
|
summary: "This is for Create New Tank.",
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
|
required: ["customerId"],
|
|
|
|
required: ["InstallerId"],
|
|
|
|
type: "object",
|
|
|
|
type: "object",
|
|
|
|
properties: {
|
|
|
|
properties: {
|
|
|
|
customerId: {
|
|
|
|
InstallerId: {
|
|
|
|
type: "string",
|
|
|
|
type: "string",
|
|
|
|
description: "customerId",
|
|
|
|
description: "InstallerId",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -29,7 +29,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
tankName: { type: "string" },
|
|
|
|
tankName: { type: "string" },
|
|
|
|
blockName: { type: "string"},
|
|
|
|
blockName: { type: "string"},
|
|
|
|
capacity: { type: "string" },
|
|
|
|
capacity: { type: "string" },
|
|
|
|
|
|
|
|
customerId: { type: "string" },
|
|
|
|
typeOfWater: { type: "string" },
|
|
|
|
typeOfWater: { type: "string" },
|
|
|
|
waterCapacityPerCm:{ type: "string" },
|
|
|
|
waterCapacityPerCm:{ type: "string" },
|
|
|
|
tankLocation: { type: "string" },
|
|
|
|
tankLocation: { type: "string" },
|
|
|
|