location controller updated with heading and created new models and controllers for remaining modules
This commit is contained in:
+56
-16
@@ -60,10 +60,10 @@ export default {
|
||||
},
|
||||
},
|
||||
},
|
||||
"/admin/designations": {
|
||||
"/admin/metadata": {
|
||||
get: {
|
||||
tags: ["Admin"],
|
||||
summary: "Get All Designations",
|
||||
summary: "Get All Metadata",
|
||||
responses: {
|
||||
200: {
|
||||
description: "OK",
|
||||
@@ -72,22 +72,10 @@ export default {
|
||||
},
|
||||
},
|
||||
},
|
||||
"/admin/departments": {
|
||||
"/admin/employees": {
|
||||
get: {
|
||||
tags: ["Admin"],
|
||||
summary: "Get All Departments",
|
||||
responses: {
|
||||
200: {
|
||||
description: "OK",
|
||||
content: {},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"/admin/roles": {
|
||||
get: {
|
||||
tags: ["Admin"],
|
||||
summary: "Get All Roles",
|
||||
summary: "Get All Employees",
|
||||
responses: {
|
||||
200: {
|
||||
description: "OK",
|
||||
@@ -238,4 +226,56 @@ export default {
|
||||
},
|
||||
},
|
||||
},
|
||||
"/admin/employee/{id}": {
|
||||
get: {
|
||||
tags: ["Admin"],
|
||||
summary: "Get Employee Details by ID",
|
||||
parameters: [
|
||||
{
|
||||
in: "path",
|
||||
name: "id",
|
||||
required: true,
|
||||
schema: {
|
||||
type: "string",
|
||||
},
|
||||
},
|
||||
],
|
||||
responses: {
|
||||
200: {
|
||||
description: "OK",
|
||||
content: {},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"/admin/employee/{user}/locations": {
|
||||
get: {
|
||||
tags: ["Admin"],
|
||||
summary: "Get Employee Details by ID",
|
||||
parameters: [
|
||||
{
|
||||
in: "path",
|
||||
name: "user",
|
||||
required: true,
|
||||
schema: {
|
||||
type: "string",
|
||||
},
|
||||
},
|
||||
{
|
||||
in: "query",
|
||||
name: "date",
|
||||
required: true,
|
||||
schema: {
|
||||
type: "string",
|
||||
},
|
||||
},
|
||||
],
|
||||
responses: {
|
||||
200: {
|
||||
description: "OK",
|
||||
content: {},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user