|
|
@ -10,7 +10,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
method: "POST",
|
|
|
|
method: "POST",
|
|
|
|
url: "/api/addTankers/:supplierId",
|
|
|
|
url: "/api/addTankers/:supplierId",
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier"],
|
|
|
|
tags: ["Tanker-Data"],
|
|
|
|
description: "This is to cretae New Tanker",
|
|
|
|
description: "This is to cretae New Tanker",
|
|
|
|
summary: "This is to Create New Tanker.",
|
|
|
|
summary: "This is to Create New Tanker.",
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
@ -81,7 +81,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
method: "PUT",
|
|
|
|
method: "PUT",
|
|
|
|
url: "/api/updateTankers/:supplierId",
|
|
|
|
url: "/api/updateTankers/:supplierId",
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier"],
|
|
|
|
tags: ["Tanker-Data"],
|
|
|
|
summary: "This is to update tanker",
|
|
|
|
summary: "This is to update tanker",
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
|
required: ["supplierId"],
|
|
|
|
required: ["supplierId"],
|
|
|
@ -149,7 +149,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
method: "PUT",
|
|
|
|
method: "PUT",
|
|
|
|
url: "/api/deleteTanker/:supplierId",
|
|
|
|
url: "/api/deleteTanker/:supplierId",
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier"],
|
|
|
|
tags: ["Tanker-Data"],
|
|
|
|
summary: "This is to delete tanker",
|
|
|
|
summary: "This is to delete tanker",
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
|
required: ["supplierId"],
|
|
|
|
required: ["supplierId"],
|
|
|
@ -182,7 +182,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
method: "POST",
|
|
|
|
method: "POST",
|
|
|
|
url: "/api/bookingData/:customerId",
|
|
|
|
url: "/api/bookingData/:customerId",
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier"],
|
|
|
|
tags: ["Tanker-Data"],
|
|
|
|
description: "This is for storing booking data of a Tanker",
|
|
|
|
description: "This is for storing booking data of a Tanker",
|
|
|
|
summary: "This is for storing booking data of a Tanker",
|
|
|
|
summary: "This is for storing booking data of a Tanker",
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
@ -208,7 +208,8 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
dateOfOrder: { type: "string"},
|
|
|
|
dateOfOrder: { type: "string"},
|
|
|
|
price: { type: "string"},
|
|
|
|
price: { type: "string"},
|
|
|
|
supplierId: { type: "string"},
|
|
|
|
supplierId: { type: "string"},
|
|
|
|
|
|
|
|
latitude: { type: 'number' },
|
|
|
|
|
|
|
|
longitude: { type: 'number'}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -230,7 +231,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getTankers", {
|
|
|
|
fastify.get("/api/getTankers", {
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier"],
|
|
|
|
tags: ["Tanker-Data"],
|
|
|
|
description: "This is for Get Tanker Data",
|
|
|
|
description: "This is for Get Tanker Data",
|
|
|
|
summary: "This is for to Get Tanker Data",
|
|
|
|
summary: "This is for to Get Tanker Data",
|
|
|
|
querystring: {
|
|
|
|
querystring: {
|
|
|
@ -248,7 +249,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getallTankers", {
|
|
|
|
fastify.get("/api/getallTankers", {
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier"],
|
|
|
|
tags: ["Tanker-Data"],
|
|
|
|
description: "This is for Get all Tanker Data",
|
|
|
|
description: "This is for Get all Tanker Data",
|
|
|
|
summary: "This is for to Get all Tanker Data",
|
|
|
|
summary: "This is for to Get all Tanker Data",
|
|
|
|
|
|
|
|
|
|
|
@ -266,7 +267,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
method: "POST",
|
|
|
|
method: "POST",
|
|
|
|
url: "/api/addBores/:customerId",
|
|
|
|
url: "/api/addBores/:customerId",
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier"],
|
|
|
|
tags: ["Tank"],
|
|
|
|
description: "This is to cretae New Bore",
|
|
|
|
description: "This is to cretae New Bore",
|
|
|
|
summary: "This is to Create New Bore.",
|
|
|
|
summary: "This is to Create New Bore.",
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
@ -305,7 +306,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getTankersBookingdetails/:customerId", {
|
|
|
|
fastify.get("/api/getTankersBookingdetails/:customerId", {
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier"],
|
|
|
|
tags: ["Tanker-Data"],
|
|
|
|
description: "This is for Get Tanker Booking Data",
|
|
|
|
description: "This is for Get Tanker Booking Data",
|
|
|
|
summary: "This is for to Get Tanker Booking Data",
|
|
|
|
summary: "This is for to Get Tanker Booking Data",
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
@ -334,7 +335,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getAllTankersBookingdetails/:supplierId", {
|
|
|
|
fastify.get("/api/getAllTankersBookingdetails/:supplierId", {
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier"],
|
|
|
|
tags: ["Tanker-Data"],
|
|
|
|
description: "This is for Get All Tanker Booking Data",
|
|
|
|
description: "This is for Get All Tanker Booking Data",
|
|
|
|
summary: "This is for to Get All Tanker Booking Data",
|
|
|
|
summary: "This is for to Get All Tanker Booking Data",
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
@ -362,7 +363,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getBores", {
|
|
|
|
fastify.get("/api/getBores", {
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier"],
|
|
|
|
tags: ["Tank"],
|
|
|
|
description: "This is for Get Bore Data",
|
|
|
|
description: "This is for Get Bore Data",
|
|
|
|
summary: "This is for to Get Bore Data",
|
|
|
|
summary: "This is for to Get Bore Data",
|
|
|
|
querystring: {
|
|
|
|
querystring: {
|
|
|
@ -382,7 +383,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
method: "PUT",
|
|
|
|
method: "PUT",
|
|
|
|
url: "/api/deleteBore/:customerId",
|
|
|
|
url: "/api/deleteBore/:customerId",
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier"],
|
|
|
|
tags: ["Tank"],
|
|
|
|
summary: "This is for delete bore",
|
|
|
|
summary: "This is for delete bore",
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
|
required: ["customerId"],
|
|
|
|
required: ["customerId"],
|
|
|
@ -413,7 +414,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
method: "PUT",
|
|
|
|
method: "PUT",
|
|
|
|
url: "/api/updateBores/:customerId",
|
|
|
|
url: "/api/updateBores/:customerId",
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier"],
|
|
|
|
tags: ["Tank"],
|
|
|
|
summary: "This is for update bore",
|
|
|
|
summary: "This is for update bore",
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
|
required: ["customerId"],
|
|
|
|
required: ["customerId"],
|
|
|
@ -461,7 +462,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
method: "POST",
|
|
|
|
method: "POST",
|
|
|
|
url: "/api/addGovtPIpeline/:customerId",
|
|
|
|
url: "/api/addGovtPIpeline/:customerId",
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier"],
|
|
|
|
tags: ["Tank"],
|
|
|
|
description: "This is to cretae New addGovtPIpeline",
|
|
|
|
description: "This is to cretae New addGovtPIpeline",
|
|
|
|
summary: "This is to Create New addGovtPIpeline.",
|
|
|
|
summary: "This is to Create New addGovtPIpeline.",
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
@ -500,7 +501,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getPipelines", {
|
|
|
|
fastify.get("/api/getPipelines", {
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier"],
|
|
|
|
tags: ["Tank"],
|
|
|
|
description: "This is for Get Pipeline Data",
|
|
|
|
description: "This is for Get Pipeline Data",
|
|
|
|
summary: "This is for to Get Pipeline Data",
|
|
|
|
summary: "This is for to Get Pipeline Data",
|
|
|
|
querystring: {
|
|
|
|
querystring: {
|
|
|
@ -520,7 +521,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
method: "PUT",
|
|
|
|
method: "PUT",
|
|
|
|
url: "/api/deletePipeline/:customerId",
|
|
|
|
url: "/api/deletePipeline/:customerId",
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier"],
|
|
|
|
tags: ["Tank"],
|
|
|
|
summary: "This is for delete Pipeline",
|
|
|
|
summary: "This is for delete Pipeline",
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
|
required: ["customerId"],
|
|
|
|
required: ["customerId"],
|
|
|
@ -551,7 +552,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
method: "PUT",
|
|
|
|
method: "PUT",
|
|
|
|
url: "/api/updatePipeline/:customerId",
|
|
|
|
url: "/api/updatePipeline/:customerId",
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier"],
|
|
|
|
tags: ["Tank"],
|
|
|
|
summary: "This is for update Pipeline",
|
|
|
|
summary: "This is for update Pipeline",
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
|
required: ["customerId"],
|
|
|
|
required: ["customerId"],
|
|
|
@ -597,7 +598,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
method: "PUT",
|
|
|
|
method: "PUT",
|
|
|
|
url: "/api/deleteTanker1/:supplierId",
|
|
|
|
url: "/api/deleteTanker1/:supplierId",
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier"],
|
|
|
|
tags: ["Tanker-Data"],
|
|
|
|
summary: "This is to delete tanker",
|
|
|
|
summary: "This is to delete tanker",
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
|
required: ["supplierId"],
|
|
|
|
required: ["supplierId"],
|
|
|
@ -627,7 +628,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
method: 'GET',
|
|
|
|
method: 'GET',
|
|
|
|
url: '/connection-status',
|
|
|
|
url: '/connection-status',
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier"],
|
|
|
|
tags: ["Tanker-Data"],
|
|
|
|
description: "This is for Get Tankers Data for status connected or not",
|
|
|
|
description: "This is for Get Tankers Data for status connected or not",
|
|
|
|
summary: "This is for to Get Tankers Data for status connected or not",
|
|
|
|
summary: "This is for to Get Tankers Data for status connected or not",
|
|
|
|
querystring: {
|
|
|
|
querystring: {
|
|
|
@ -708,7 +709,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
method: "PUT",
|
|
|
|
method: "PUT",
|
|
|
|
url: "/api/deleteBookingInfo/:bookingid",
|
|
|
|
url: "/api/deleteBookingInfo/:bookingid",
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier-Order"],
|
|
|
|
tags: ["Tanker-Data"],
|
|
|
|
summary: "This is for delete Booking Info",
|
|
|
|
summary: "This is for delete Booking Info",
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
|
required: ["bookingid"],
|
|
|
|
required: ["bookingid"],
|
|
|
|