Dashboard APIs
Login Admin
POST https://market-mfund-development.herokuapp.com/api/admin/authentication/login/
This endpoint allows user to login and get JWT tokens from Node Server. Before making this request, firebase authentication must be made from admin app and Firebase JWT token is send in body for verification.
Request Body
password
string
Password of the respective admin
string
Email Id of the admin
{
"status": "success",
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MzcsImVtYWlsIjoidmlyYWxzQGdlZWt5YW50cy5jb20iLCJpc0FkbWluIjp0cnVlLCJpYXQiOjE2MDg3MjAzNDQsImV4cCI6MTYwODgwNjc0NCwiYXVkIjoibWFya2V0LW1mdW5kLXVzZXJzIiwiaXNzIjoiZ2Vla3lhbnRzIn0.mxZ52tCdBPZyi567mkp68dwouI_hEjOMP40ym0nawmkrxp5mgdzMrD83as_inp5suqhopcoGVDhKZc3wEXTpmAkVHYownl19vqzqXLVe8tb8x_mWQrMtp_SNRifKYseanriLW6_LotXaQarfehZ-__-1GHGLbmWSbZjFmE6zUSvdJUxSiGtZd0K6CIKMZoBwQKTHCoYqRUAAyUlVue5Q4EZJFC8BU2NBKY_RrcvTlh9qRewwRiCfha4dZBbb22vbQNsON0OITLdvNIPsEavHYh54J8NvItFfuReNP9gJQkjSVbUZwImldQBbmTwEynMaR8bGDxboRQ14ktq-47mvIY0dYAUwiyDLjK_Tyg1EvswYDLOweUpW6KWWnTJh3xM2VhZPMkmeyjnYa_vUyuwNdc3uP28i9VEhr4uyTkCfzlCJJ_rZx-1h-lq1bNWNpDkW6ZItO0m_rD-OWP8svjqpuKjwc7S2xWsxMJlr6sfyBKQHPqMr7BDlWilp7PRLUBt_FXj-7_Fnk8Df9zBIC8oWvg-WwbMo6ES9zD6vt7fHag91fPuwFpALcwqp2N2qrrZGtTCowowYHgP6SmDo-P0Z_CCCyh3plZqB5e8eFNQVhSulRuZnv_o8ylF_kJCEdBr7cecPrCBF-YF9_wIPVg8BApJL5iHBgk6dXxPOdtUVbrE",
"refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MzcsImVtYWlsIjoidmlyYWxzQGdlZWt5YW50cy5jb20iLCJpc0FkbWluIjp0cnVlLCJpc1JlZnJlc2hUb2tlbiI6dHJ1ZSwiaWF0IjoxNjA4NzIwMzQ0LCJleHAiOjE2MDkzMjUxNDQsImF1ZCI6Im1hcmtldC1tZnVuZC11c2VycyIsImlzcyI6ImdlZWt5YW50cyJ9.xqrYvwui25QKLdr0s6iWMM0h3xuQmden5Aa_iZvZGM5IG0dxOV59_GNF9geRvpZ7Hjqy7bn0V8vcCqTpH9f4WJGJxN53kawpuzbehH_PxMVMHe8GpuSdCm4tW_LnPQiJ6Y0w8vYrUf5aYzlXWn4p-2YLqEKWEVoEvov_RDzddZAGxVoaSHNOF9rcDDgLyPmxCHd8L2DnyrFkhclYXQ5bu7YEgaiQiVcbllEjWWUH94nyzX3x_TyB-odnIXLEGoJZdkZuaFG3iTlB46W8muZgzU5ey6QaT0V3ZiiQDjfUPlXbR2Hx0trbXMtUAXZnXnlXmB6eKPKqGoC23hLfUsrtiatwAqH5qMuFavHL4tCMfEofKwdiJcL3msVw3sD9eBxrTtdYCiLo1JTyAm7gFhJpflwVIEYwGLSBxBWCMctB_eO9j_v4CM3s6QSra-XVzOe_EjBbwjFWPwUcbY9E1WcttbHnAtLLc8Q2AoaQv5A72LqTkPMV6hjzULmfRhPLMHIxJHlpmVXG9zxfl5biM1AFPjyRmW6O2Y3vdP7XuVpmloNpqYQmx4FtH-elKdkS8HdxCFjQ20wWrcHiF08-R-gdoqKgRB5f4cqlKmsl0DZLEkPyaUVCzyGkAjfT0IIIMR62WqEjYtrBY5bpnVtXqUl0Ro3B-xs3HiPtE-Kz3BnPl5s"
}Home API
GET https://market-mfund-development.herokuapp.com/api/admin/home/
This Api will retrieve all the information displayed on the home page of admin app. This API requires JWT access token which is retrieved from Login API.
Headers
Authorization
string
Bearer eyjhbg....
Organisations API
GET https://market-mfund-development.herokuapp.com/api/admin/home/organisations
This endpoint will retrieve all the information about organisations. This API requires JWT access token which is retrieved from Login API.
Headers
Authorization
string
Bearer eyjhbg...
Add Organisation API
POST https://market-mfund-development.herokuapp.com/api/admin/add_new_organisation
This endpoint allows an admin to add organisations in the database.This API requires JWT token which is retrieved from Login API.
Headers
Authorization
string
Access Token.
Request Body
returns
string
returns of the organisation
currentValue
string
current value of organisation
xirr
string
xirr of organisation
schemeName
string
Name of the organisation to be added
Investors API
GET https://market-mfund-development.herokuapp.com/api/admin/investors
This endpoint will retrieve the Investors details. This API requires JWT token which is retrieved from Login API.
Headers
Authorization
string
Access Token.
Balances API
GET https://market-mfund-development.herokuapp.com/api/admin/balances
This endpoint will retrieve all the balances of the organisations. This API requires JWT token which is retrieved from Login API.
Headers
Authorization
string
Access Token.
Transactions API
GET https://market-mfund-development.herokuapp.com/api/admin/transaction_details
This endpoint will retrieve the transaction details made by a specific user. This API requires JWT token which is retrieved from Login API.
Path Parameters
Authorization
string
Access Token.
Add Admin
POST https://market-mfund-development.herokuapp.com/api/admin/authentication/add_admin/
This endpoint allows to create an admin in the postgreSQL database . This API requires JWT access token which is retrieved from Login Admin API.
Headers
Authorization
string
Bearer eyjhbg.....
Request Body
password
string
Password to be associated with the respective admin
string
Email Id to be registered
Change Password
POST https://market-mfund-development.herokuapp.com/api/admin/change_password
This endpoint allows admin to change his/her current password. This API requires JWT access token which is retrieved from Login Admin API.
Headers
Authorization
string
Bearer ejhyzn...
Request Body
newPassword
string
New Password for admin
oldPassword
string
Current password of admin
Notification API
GET https://market-mfund-development.herokuapp.com/api/admin/notifications
This endpoint will retrieve all the Notifications. This API requires JWT access token which is retrieved from Login API.
Headers
Authorization
string
Bearer eyjhbg...
Notifications API
DELETE https://market-mfund-development.herokuapp.com/api/admin/notifications
This endpoint will delete all the notifications associated with a specific admin.
Headers
Authorization
string
Bearer eyjhbg...
Last updated
Was this helpful?