mercore starter

This commit is contained in:
CHIEFSOFT\ameye
2025-06-22 20:11:32 -04:00
parent 5087afcca6
commit 8bb5ce69e2
53 changed files with 418 additions and 1620 deletions
+23 -80
View File
@@ -1,8 +1,8 @@
{
"openapi": "3.0.3",
"info": {
"title": "Swagger Bank Channel to Simbrella FirstAdvance - OpenAPI 3.0",
"description": "This is a Simbrella FirstAdvance Backend Server with the OpenAPI 3.0 specification. \n\n\nSome useful links:\n- [Web Simulated Demo Page](https://digifi-salaryloan.chiefsoft.net/)\n- [Web Management Support Portal](https://digifi-office.chiefsoft.net/auth/login)",
"title": "Swagger MERM Core - OpenAPI 3.0",
"description": "This is MERMS Backend Server with the OpenAPI 3.0 specification. \n\n\nSome useful links:\n- [Product Page](https://www.mermsemr.com/)\n- [Dev Product Web](https://panel.mermsemr.com/)",
"termsOfService": "http://swagger.io/terms/",
"contact": {
"email": "support@chiefsoft.com"
@@ -15,13 +15,13 @@
},
"servers": [
{
"url": "http://localhost:4500"
"url": "http://localhost:14700"
},
{
"url": "http://api.dev.simbrellang.net:4500"
"url": "https://devapi.mermsemr.com"
},
{
"url": "https://api.dev.simbrellang.net"
"url": "https://api.mermsemr.com"
}
],
"tags": [
@@ -30,7 +30,7 @@
"description": "This feature will be used for authorizing customers.",
"externalDocs": {
"description": "Find out more",
"url": "https://www.simbrellang.net"
"url": "https://www.mermsemr.com"
}
},
{
@@ -38,47 +38,23 @@
"description": "This feature will be used for refreshing authorized customers.",
"externalDocs": {
"description": "Find out more",
"url": "https://www.simbrellang.net"
"url": "https://www.mermsemr.com"
}
},
{
"name": "EligibilityCheck",
"description": "Eligibility Check Request",
"name": "Login",
"description": "User Login",
"externalDocs": {
"description": "Find out more",
"url": "https://www.simbrellang.net"
"url": "https://www.mermsemr.com"
}
},
{
"name": "SelectOffer",
"description": "This method is used the send the offer the customer selected to Simbrella.",
"name": "Register",
"description": "Register a new user.",
"externalDocs": {
"description": "Find out more",
"url": "https://www.simbrellang.net"
}
},
{
"name": "ProvideLoan",
"description": "Provide Loan Request.",
"externalDocs": {
"description": "Find out more",
"url": "https://www.simbrellang.net"
}
},
{
"name": "LoanStatus",
"description": "Loan Information Request.",
"externalDocs": {
"description": "Find out more",
"url": "https://www.simbrellang.net"
}
},
{
"name": "Repayment",
"description": "Repayment Request.",
"externalDocs": {
"description": "Find out more",
"url": "https://www.simbrellang.net"
"url": "https://www.mermsemr.com"
}
}
],
@@ -89,59 +65,26 @@
"/AuthorizeRefresh": {
"$ref": "swagger/paths/AuthorizeRefresh.json"
},
"/EligibilityCheck": {
"$ref": "swagger/paths/EligibilityCheck.json"
"/Login": {
"$ref": "swagger/paths/Login.json"
},
"/SelectOffer": {
"/Register": {
"$ref": "swagger/paths/SelectOffer.json"
},
"/ProvideLoan": {
"$ref": "swagger/paths/ProvideLoan.json"
},
"/LoanStatus": {
"$ref": "swagger/paths/LoanStatus.json"
},
"/Repayment": {
"$ref": "swagger/paths/Repayment.json"
}
},
"components": {
"schemas": {
"EligibilityCheckRequest": {
"$ref": "swagger/schemas/EligibilityCheckRequest.json"
"Login": {
"$ref": "swagger/schemas/LoginRequest.json"
},
"EligibilityCheckResponse": {
"$ref": "swagger/schemas/EligibilityCheckResponse.json"
"LoginResponse": {
"$ref": "swagger/schemas/LoginResponse.json"
},
"SelectOfferRequest": {
"Register": {
"$ref": "swagger/schemas/SelectOfferRequest.json"
},
"SelectOfferResponse": {
"$ref": "swagger/schemas/SelectOfferResponse.json"
},
"LoanStatusRequest": {
"$ref": "swagger/schemas/LoanStatusRequest.json"
},
"LoanStatusResponse": {
"$ref": "swagger/schemas/LoanStatusResponse.json"
},
"RepaymentRequest": {
"$ref": "swagger/schemas/RepaymentRequest.json"
},
"RepaymentResponse": {
"$ref": "swagger/schemas/RepaymentResponse.json"
},
"CustomerConsentRequest": {
"$ref": "swagger/schemas/CustomerConsentRequest.json"
},
"CustomerConsentResponse": {
"$ref": "swagger/schemas/CustomerConsentResponse.json"
},
"NotificationCallbackRequest": {
"$ref": "swagger/schemas/NotificationCallbackRequest.json"
},
"NotificationCallbackResponse": {
"$ref": "swagger/schemas/NotificationCallbackResponse.json"
"RegisterResponse": {
"$ref": "swagger/schemas/RegisterResponse.json"
},
"ApiResponse": {
"$ref": "swagger/schemas/ApiResponse.json"
+57
View File
@@ -0,0 +1,57 @@
{
"post": {
"tags": [
"Login"
],
"summary": "Start the process - initiate steps to eligibility RAC Checks ",
"description": "Initiate Login Request",
"operationId": "startLogin",
"requestBody": {
"description": "Post JSON to conduct eligibility tests",
"content": {
"application/json": {
"schema": {
"$ref": "../schemas/LoginRequest.json"
}
},
"application/xml": {
"schema": {
"$ref": "../schemas/LoginRequest.json"
}
},
"application/x-www-form-urlencoded": {
"schema": {
"$ref": "../schemas/LoginRequest.json"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful operation",
"content": {
"application/json": {
"schema": {
"$ref": "../schemas/LoginResponse.json"
}
},
"application/xml": {
"schema": {
"$ref": "../schemas/LoginResponse.json"
}
}
}
},
"400": {
"description": "Invalid request"
},
"422": {
"description": "Validation exception"
},
"500": {
"description": "Internal server error"
}
}
}
}
+16
View File
@@ -0,0 +1,16 @@
{
"type": "object",
"properties": {
"username": {
"type": "string",
"example": "testaccount"
},
"password": {
"type": "string",
"example": "merms.user.panel"
}
},
"xml": {
"name": "LoginRequest"
}
}
+49
View File
@@ -0,0 +1,49 @@
{
"type": "object",
"properties": {
"member_id": {
"type": "string",
"example": "200"
},
"uid": {
"type": "string",
"example": "8888-999998-9999"
},
"username": {
"type": "string",
"example": "username"
},
"account_name": {
"type": "string",
"example": "account_name"
},
"firstname": {
"type": "string",
"example": "firstname"
},
"lastname": {
"type": "string",
"example": "lastname"
},
"room": {
"type": "string",
"example": "room"
},
"token": {
"type": "string",
"example": "username"
},
"resultDescription": {
"type": "string",
"example": "Successful"
},
"resultCode": {
"type": "string",
"example": "00"
}
},
"xml": {
"name": "LoginResponse"
}
}