|
|
|
@ -269,18 +269,18 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
|
|
|
|
|
fastify.route({
|
|
|
|
|
method: "POST",
|
|
|
|
|
url: "/api/addBores/:customerId",
|
|
|
|
|
url: "/api/addBores/:InstallerId",
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Tank"],
|
|
|
|
|
description: "This is to cretae New Bore",
|
|
|
|
|
summary: "This is to Create New Bore.",
|
|
|
|
|
params: {
|
|
|
|
|
required: ["customerId"],
|
|
|
|
|
required: ["InstallerId"],
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
customerId: {
|
|
|
|
|
InstallerId: {
|
|
|
|
|
type: "string",
|
|
|
|
|
description: "customerId",
|
|
|
|
|
description: "InstallerId",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -288,6 +288,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
boreName: { type: "string" },
|
|
|
|
|
customerId: { type: "string" },
|
|
|
|
|
capacity: { type: "string" },
|
|
|
|
|
typeofwater: { type: "string" },
|
|
|
|
|
description: { type: "string" },
|
|
|
|
|