|
|
|
@ -6,7 +6,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
method: "POST",
|
|
|
|
|
url: "/api/citySignup",
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
tags: ["Admin"],
|
|
|
|
|
description: "This is for creating a new City account",
|
|
|
|
|
summary: "This is for creating a new City account",
|
|
|
|
|
body: {
|
|
|
|
@ -104,7 +104,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getallcompanyNames", {
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
tags: ["Admin"],
|
|
|
|
|
description: "This is for Get all Company Name in city schema ",
|
|
|
|
|
summary: "This is for to Get all Company Name in city schema ",
|
|
|
|
|
|
|
|
|
@ -212,7 +212,7 @@ fastify.route({
|
|
|
|
|
method: "PUT",
|
|
|
|
|
url: "/api/updateBranchOrCompanydetails/:id",
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
tags: ["Admin"],
|
|
|
|
|
description: "Update details of a branch or city",
|
|
|
|
|
summary: "Edit department details by branchId or cityId",
|
|
|
|
|
params: {
|
|
|
|
@ -549,7 +549,7 @@ fastify.route({
|
|
|
|
|
method: "GET",
|
|
|
|
|
url: "/api/zonebasedcity/:city/:officeName",
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
tags: ["Admin"],
|
|
|
|
|
description: "Get the zones by city and office",
|
|
|
|
|
summary: "Get the zones by city and office",
|
|
|
|
|
params: {
|
|
|
|
@ -621,7 +621,7 @@ fastify.route({
|
|
|
|
|
method: "GET",
|
|
|
|
|
url: "/api/departmentNamebaselist/:officeName/:city/:departmentName/:employeeType",
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
tags: ["Admin"],
|
|
|
|
|
description: "Department name based list",
|
|
|
|
|
summary: "Department name based list",
|
|
|
|
|
params: {
|
|
|
|
@ -658,7 +658,7 @@ fastify.route({
|
|
|
|
|
method: "POST",
|
|
|
|
|
url: "/api/branchSignup",
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
tags: ["Admin"],
|
|
|
|
|
description: "This is for creating a new Branch account",
|
|
|
|
|
summary: "This is for creating a new Branch account",
|
|
|
|
|
body: {
|
|
|
|
@ -699,7 +699,7 @@ fastify.route({
|
|
|
|
|
method: "POST",
|
|
|
|
|
url: "/api/zoneSignup",
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
tags: ["Admin"],
|
|
|
|
|
description: "This is for creating a new Zone account",
|
|
|
|
|
summary: "This is for creating a new Zone account",
|
|
|
|
|
body: {
|
|
|
|
@ -784,7 +784,7 @@ fastify.route({
|
|
|
|
|
|
|
|
|
|
fastify.get("/api/getCitiesByOfficeName/:officeName", {
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
tags: ["Admin"],
|
|
|
|
|
description: "This is for Get cities by OfficeName Data",
|
|
|
|
|
summary: "This is to Get cities by OfficeName Data",
|
|
|
|
|
params: {
|
|
|
|
@ -810,7 +810,7 @@ fastify.route({
|
|
|
|
|
method: "GET",
|
|
|
|
|
url: "/api/departmentNameList/:city/:officeName",
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
tags: ["Admin"],
|
|
|
|
|
description: "Get a list of department names for a given city",
|
|
|
|
|
summary: "Department names by city",
|
|
|
|
|
params: {
|
|
|
|
@ -888,7 +888,7 @@ fastify.route({
|
|
|
|
|
method: "GET",
|
|
|
|
|
url: "/api/staffdepartments/:officeName/:city",
|
|
|
|
|
schema: {
|
|
|
|
|
tags: ["Department"],
|
|
|
|
|
tags: ["Admin"],
|
|
|
|
|
description: "This is for fetching department details based on officeName and city",
|
|
|
|
|
summary: "This is for fetching department details based on officeName and city",
|
|
|
|
|
params: {
|
|
|
|
|