Initialized Project with default middlewares and helpers, connected to Atlas Instance and created Swagger Setup. Created necessary DB models and authentication-authorization logic

This commit is contained in:
Shibi Chakkaravarthy
2026-04-15 02:28:35 +05:30
commit 864e5fae65
71 changed files with 8184 additions and 0 deletions
+60
View File
@@ -0,0 +1,60 @@
export default {
"/profile": {
post: {
tags: ["Profile"],
summary: "Create or Edit Profile New User",
requestBody: {
required: true,
content: {
"application/json": {
schema: {
type: "object",
properties: {
user: {
type: "string",
required: true,
},
mobile: {
type: "string",
required: true,
},
address: {
type: "string",
required: true,
},
city: {
type: "string",
required: true,
},
state: {
type: "string",
required: true,
},
pincode: {
type: "string",
required: true,
},
},
},
},
},
},
responses: {
200: {
description: "OK",
content: {},
},
},
},
get: {
tags: ["Profile"],
summary: "Get Profile for a User",
responses: {
200: {
description: "OK",
content: {},
},
},
},
},
};