|
|
|
@ -163,11 +163,21 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
|
|
|
|
|
fastify.route({
|
|
|
|
|
method: "POST",
|
|
|
|
|
url: "/api/addBores",
|
|
|
|
|
url: "/api/addBores/:customerId",
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Supplier"],
|
|
|
|
|
description: "This is to cretae New Bore",
|
|
|
|
|
summary: "This is to Create New Bore.",
|
|
|
|
|
params: {
|
|
|
|
|
required: ["customerId"],
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|
customerId: {
|
|
|
|
|
type: "string",
|
|
|
|
|
description: "customerId",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
body: {
|
|
|
|
|
type: "object",
|
|
|
|
|
properties: {
|
|
|
|
|