master^2
Bhaskar 1 month ago
parent b0839a1850
commit 188ff245fa

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

@ -88,7 +88,7 @@ fastify.get("/api/getAllDepartments/:officeName/:city", {
fastify.get("/api/getTeamMembers/:officeName/:city/:departmentId", { fastify.get("/api/getTeamMembers/:officeName/:city/:departmentId", {
schema: { schema: {
description: "Get all team members under a specific department", description: "Get all team members under a specific department",
tags: ["Department"], tags: ["Admin"],
summary: "Get Team Members by Department ID", summary: "Get Team Members by Department ID",
params: { params: {
type: "object", type: "object",

Loading…
Cancel
Save