|
|
@ -327,6 +327,35 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
handler: tankersController.getTankersBookingdetails,
|
|
|
|
handler: tankersController.getTankersBookingdetails,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getAllTankersBookingdetails/:supplierId", {
|
|
|
|
|
|
|
|
schema: {
|
|
|
|
|
|
|
|
tags: ["Supplier"],
|
|
|
|
|
|
|
|
description: "This is for Get All Tanker Booking Data",
|
|
|
|
|
|
|
|
summary: "This is for to Get All Tanker Booking Data",
|
|
|
|
|
|
|
|
params: {
|
|
|
|
|
|
|
|
required: ["supplierId"],
|
|
|
|
|
|
|
|
type: "object",
|
|
|
|
|
|
|
|
properties: {
|
|
|
|
|
|
|
|
supplierId: {
|
|
|
|
|
|
|
|
type: "string",
|
|
|
|
|
|
|
|
description: "supplierId",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
// querystring: {
|
|
|
|
|
|
|
|
// tankerName: {type: 'string'}
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
security: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
preHandler: fastify.auth([fastify.authenticate]),
|
|
|
|
|
|
|
|
handler: tankersController.getAllTankersBookingdetails,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getBores", {
|
|
|
|
fastify.get("/api/getBores", {
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier"],
|
|
|
|
tags: ["Supplier"],
|
|
|
|