111 lines
2.3 KiB
JavaScript
111 lines
2.3 KiB
JavaScript
export default {
|
|
"/user/create": {
|
|
post: {
|
|
tags: ["Auth"],
|
|
summary: "Create Account for New User",
|
|
requestBody: {
|
|
required: true,
|
|
content: {
|
|
"application/json": {
|
|
schema: {
|
|
type: "object",
|
|
properties: {
|
|
name: {
|
|
type: "string",
|
|
required: true,
|
|
},
|
|
id: {
|
|
type: "string",
|
|
required: true,
|
|
},
|
|
password: {
|
|
type: "string",
|
|
required: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
responses: {
|
|
200: {
|
|
description: "OK",
|
|
content: {},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
"/user/login": {
|
|
post: {
|
|
tags: ["Auth"],
|
|
summary: "Login with Employee Id and Password",
|
|
requestBody: {
|
|
required: true,
|
|
content: {
|
|
"application/json": {
|
|
schema: {
|
|
type: "object",
|
|
properties: {
|
|
id: {
|
|
type: "string",
|
|
required: true,
|
|
},
|
|
password: {
|
|
type: "string",
|
|
required: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
responses: {
|
|
200: {
|
|
description: "OK",
|
|
content: {},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
"/user/token/renew": {
|
|
post: {
|
|
tags: ["Auth"],
|
|
summary: "Login with Employee Code and Password",
|
|
requestBody: {
|
|
required: true,
|
|
content: {
|
|
"application/json": {
|
|
schema: {
|
|
type: "object",
|
|
properties: {
|
|
refreshToken: {
|
|
type: "string",
|
|
required: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
responses: {
|
|
200: {
|
|
description: "OK",
|
|
content: {},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
"/user/accessible-modules": {
|
|
get: {
|
|
tags: ["User"],
|
|
summary: "Get the List of Accessible Modules for a User",
|
|
responses: {
|
|
200: {
|
|
description: "OK",
|
|
content: {},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|