Files
fielderp-server/documentation/user.js
T

99 lines
2.0 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: {},
},
},
},
},
};