Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
supremepay_admin_api
Advanced tools
Readme
NodeSwaggerApi - JavaScript client for node_swagger_api Supreme Pay with Swagger This SDK is automatically generated by the Swagger Codegen project:
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install node_swagger_api --save
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing
into the directory containing package.json
(and this README). Let's call this JAVASCRIPT_CLIENT_DIR
. Then run:
npm install
Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR
:
npm link
Finally, switch to the directory you want to use your node_swagger_api from, and run:
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
You should now be able to require('node_swagger_api')
in javascript files from the directory you ran the last
command above from.
If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/node_swagger_api then install it via:
npm install YOUR_USERNAME/node_swagger_api --save
The library also works in the browser environment via npm and browserify. After following
the above steps with Node.js and installing browserify with npm install -g browserify
,
perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually
use this library):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:
module: {
rules: [
{
parser: {
amd: false
}
}
]
}
Please follow the installation instruction and execute the following JS code:
var NodeSwaggerApi = require('node_swagger_api');
var defaultClient = NodeSwaggerApi.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['authorization'] = "Token"
var api = new NodeSwaggerApi.AccountTypeApi()
var details = new NodeSwaggerApi.PreferredAccountType(); // {PreferredAccountType} account types details
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.createType(details, callback);
All URIs are relative to https://api.supremepay.lk:3011/api/admin
Class | Method | HTTP request | Description |
---|---|---|---|
NodeSwaggerApi.AccountTypeApi | createType | POST /bank/account/type | |
NodeSwaggerApi.AccountTypeApi | createTypeImage | POST /bank/account/type/image | |
NodeSwaggerApi.AccountTypeApi | deleteAccountTypes | DELETE /bank/account/type/{id} | |
NodeSwaggerApi.AccountTypeApi | getAccountTypes | GET /bank/account/type | |
NodeSwaggerApi.AccountTypeApi | updateType | PUT /bank/account/type | |
NodeSwaggerApi.AdminAccountApi | callDelete | DELETE /admin/accounts/{accountid} | |
NodeSwaggerApi.AdminAccountApi | list | GET /admin/accounts/list | |
NodeSwaggerApi.AdminAccountApi | resetPassword | PUT /admin/accounts/password/reset/{id} | |
NodeSwaggerApi.AdminAccountApi | update | PUT /admin/accounts | |
NodeSwaggerApi.AdminAccountApi | updateAvatar | PUT /admin/accounts/avatar | |
NodeSwaggerApi.AdminAccountApi | updatePassword | PUT /admin/accounts/password | |
NodeSwaggerApi.AdminauthApi | login | POST /admin/auth/login | |
NodeSwaggerApi.AdminauthApi | register | POST /admin/auth/register | |
NodeSwaggerApi.AdminauthApi | registerAdmin | POST /admin/auth/register/admin | |
NodeSwaggerApi.CompanyApi | deleteContact | DELETE /admin/company/profile/contacts/{id} | |
NodeSwaggerApi.CompanyApi | deleteImage | DELETE /admin/company/profile/images/{id} | |
NodeSwaggerApi.CompanyApi | updateImage | PUT /admin/company/profile/images | |
NodeSwaggerApi.CompanyApi | updateProfile | POST /admin/company/profile | |
NodeSwaggerApi.CompanyApi | viewProfile | GET /admin/company/profile | |
NodeSwaggerApi.CountryCodeApi | availableCountries | GET /country | |
NodeSwaggerApi.CountryCodeApi | createCountryCode | POST /country | |
NodeSwaggerApi.CountryCodeApi | deleteCode | DELETE /country/{id} | |
NodeSwaggerApi.CountryCodeApi | updateCountryCode | PUT /country | |
NodeSwaggerApi.DashboardApi | getAdminActivites | GET /dashboard/users/admin/activities | |
NodeSwaggerApi.DashboardApi | getBorrowersUsers | GET /dashboard/users/borrowers/stats | |
NodeSwaggerApi.DashboardApi | getBorrowersUsersCount | GET /dashboard/users/borrowers/stats/count | |
NodeSwaggerApi.DashboardApi | getLoanCount | GET /dashboard/loans/stats | |
NodeSwaggerApi.DashboardApi | getLoanPaymentsHistory | GET /dashboard/payments/history | |
NodeSwaggerApi.DashboardApi | getRegisterdUsersCount | GET /dashboard/users/stats/count | |
NodeSwaggerApi.DashboardApi | getRegisteredUsers | GET /dashboard/users/stats/test | |
NodeSwaggerApi.DashboardApi | getRegisteredUsersList | GET /dashboard/users/stats | |
NodeSwaggerApi.DashboardApi | getUsersActivities | GET /dashboard/users/activities | |
NodeSwaggerApi.DashboardApi | getUsersLoginHistory | GET /dashboard/users/login/history | |
NodeSwaggerApi.DocumentChargeApi | deleteDocumentCharge | DELETE /loans/documents/charges/{id} | |
NodeSwaggerApi.DocumentChargeApi | getDocumentChargeDetails | GET /loans/documents/charge | |
NodeSwaggerApi.DocumentChargeApi | getDocumentChargeDetailsById | GET /loans/documents/charges/{id} | |
NodeSwaggerApi.DocumentChargeApi | saveDocumentCharge | POST /loans/documents/charges | |
NodeSwaggerApi.DocumentChargeApi | updateDocumentCharge | PUT /loans/documents/charges | |
NodeSwaggerApi.DocumentChargeHistoryApi | getDocumentChargeHistory | GET /loans/documents/history | |
NodeSwaggerApi.DocumentChargeHistoryApi | getDocumentChargeHistoryById | GET /loans/documents/history/{id} | |
NodeSwaggerApi.EmploymentApi | getEmploymentDetailAdmin | POST /employment/details | |
NodeSwaggerApi.LoansApi | addAdditionalCharges | POST /loans/process/charges/additionals | |
NodeSwaggerApi.LoansApi | createLoanPayment | POST /loans/payments | |
NodeSwaggerApi.LoansApi | deleteAdditionalCharges | DELETE /loans/process/charges/additionals/{id} | |
NodeSwaggerApi.LoansApi | deleteKycReference | DELETE /loans/process/kyc/{id} | |
NodeSwaggerApi.LoansApi | deleteLoanProfile | DELETE /loans/profile/{id} | |
NodeSwaggerApi.LoansApi | deleteLoanScheme | DELETE /loans/schemes/{id} | |
NodeSwaggerApi.LoansApi | deleteRequestedLoan | DELETE /loans/process/{id} | |
NodeSwaggerApi.LoansApi | getAdditionalChargesbyLoanId | GET /loans/process/charges/additionals/{id} | |
NodeSwaggerApi.LoansApi | getKycReferenceByUserId | GET /loans/process/users/kyc/{id} | |
NodeSwaggerApi.LoansApi | getKycReferencesByLoanId | GET /loans/process/kyc/{id} | |
NodeSwaggerApi.LoansApi | getLaonPayment | GET /loans/payments | |
NodeSwaggerApi.LoansApi | getLoanProfileDetails | GET /loans/profile | |
NodeSwaggerApi.LoansApi | getLoanProfileDetailsById | GET /loans/profile/{id} | |
NodeSwaggerApi.LoansApi | getLoanSchemeById | GET /loans/schemes/{id} | |
NodeSwaggerApi.LoansApi | getRequestedLoanById | GET /loans/process/{id} | |
NodeSwaggerApi.LoansApi | getRequestedLoanDetails | GET /loans/process | |
NodeSwaggerApi.LoansApi | getRequestedLoanUsers | GET /loans/process/users | |
NodeSwaggerApi.LoansApi | getUserByLoanId | GET /loans/process/users/{id} | |
NodeSwaggerApi.LoansApi | getUserLoanScheme | GET /loans/schemes | |
NodeSwaggerApi.LoansApi | getUsersOtherLoansbyId | GET /loans/process/users/{id}/other/loans | |
NodeSwaggerApi.LoansApi | saveLoanScheme | POST /loans/schemes | |
NodeSwaggerApi.LoansApi | setDefaultLoanScheme | PUT /loans/schemes/default | |
NodeSwaggerApi.LoansApi | updateAdditionalCharges | PUT /loans/process/charges/additionals | |
NodeSwaggerApi.LoansApi | updateKycReferenceStatus | PUT /loans/process/status/kyc | |
NodeSwaggerApi.LoansApi | updateLoanScheme | PUT /loans/schemes | |
NodeSwaggerApi.LoansApi | updateLoanStatus | PUT /loans/process/status | |
NodeSwaggerApi.LoansApi | updateRequestedLoan | PUT /loans/process | |
NodeSwaggerApi.LoansApi | updateloanProfile | PUT /loans/profile | |
NodeSwaggerApi.MerchantProfileApi | deleteMerchant | DELETE /admin/merchants/{id} | |
NodeSwaggerApi.MerchantProfileApi | getMerchantDetailsById | GET /admin/merchants/{id} | |
NodeSwaggerApi.MerchantProfileApi | getMerchantsDetails | GET /admin/merchants | |
NodeSwaggerApi.MerchantProfileApi | saveMerchant | POST /admin/merchants | |
NodeSwaggerApi.MerchantProfileApi | updateMerchant | PUT /admin/merchants | |
NodeSwaggerApi.MerchantProfileApi | updateMerchantImage | PUT /admin/merchants/image | |
NodeSwaggerApi.NotificationsApi | sendNotifications | POST /notifications/send | |
NodeSwaggerApi.PayeeCategoryApi | availableCategories | GET /paying/categories | |
NodeSwaggerApi.PayeeCategoryApi | createPayingCateogory | POST /paying/categories | |
NodeSwaggerApi.PayeeCategoryApi | createPayingCateogoryImage | POST /paying/categories/image | |
NodeSwaggerApi.PayeeCategoryApi | deletePayingCategory | DELETE /paying/categories/{id} | |
NodeSwaggerApi.PayeeCategoryApi | updatePayingCateogory | PUT /paying/categories | |
NodeSwaggerApi.PromotionApi | createPromotion | POST /promotion/create | |
NodeSwaggerApi.PromotionApi | createPromotionImage | PUT /promotion/images | |
NodeSwaggerApi.PromotionApi | deletePromotion | DELETE /promotion/{promo_code} | |
NodeSwaggerApi.PromotionApi | deletePromotionImage | POST /promotion/images/remove | |
NodeSwaggerApi.PromotionApi | getPromotionByPromoCode | GET /promotion/bypromocode/{promo_code} | |
NodeSwaggerApi.PromotionApi | getPromotions | GET /promotion/allpromotion | |
NodeSwaggerApi.PromotionApi | updatePromotion | PUT /promotion | |
NodeSwaggerApi.SearchApi | searchUsers | GET /search/users | |
NodeSwaggerApi.ServiceProviderApi | createServiceProvider | POST /service/providers | |
NodeSwaggerApi.ServiceProviderApi | deleteServiceProvider | DELETE /service/providers/{id} | |
NodeSwaggerApi.ServiceProviderApi | getServiceProviders | GET /service/providers | |
NodeSwaggerApi.ServiceProviderApi | serviceProviderImage | POST /service/providers/image | |
NodeSwaggerApi.ServiceProviderApi | updateServiceProvider | PUT /service/providers | |
NodeSwaggerApi.TemplatesApi | getTemplates | GET /admin/templates | |
NodeSwaggerApi.TemplatesApi | getTemplatesCategories | GET /admin/templates/categories | |
NodeSwaggerApi.VersionApi | checkVersion | POST /version/check | |
NodeSwaggerApi.VersionApi | createVersion | POST /version | |
NodeSwaggerApi.VersionApi | deleteVersion | DELETE /version/{id} | |
NodeSwaggerApi.VersionApi | getVersions | GET /version |
FAQs
Supreme_Pay__with_Swagger
The npm package supremepay_admin_api receives a total of 0 weekly downloads. As such, supremepay_admin_api popularity was classified as not popular.
We found that supremepay_admin_api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.