Last updated 3 months ago
List of users
GET /auth/userlist?limit=1 HTTP/1.1 Host: Authorization: text Accept: */*
success response
{ "status": 1, "message": "text" }
Delete a user
DELETE /auth/delete-user/{id} HTTP/1.1 Host: Authorization: text Accept: */*
User logout.
POST /auth/logout HTTP/1.1 Host: Authorization: text Accept: */*
This is for user password key validation.
GET /auth/forgot-password-key-check HTTP/1.1 Host: Accept: */*
This is to get the user profile
GET /auth/get-profile HTTP/1.1 Host: Authorization: text Accept: */*
Get user site map
GET /auth/get-sitemap HTTP/1.1 Host: Accept: */*
Create a user login
POST /auth/login HTTP/1.1 Host: Content-Type: application/x-www-form-urlencoded Accept: */* Content-Length: 37 "username='text'&password='text'"
{ "createdBy": 1, "createdDate": "2025-05-09T07:58:26.437Z", "modifiedBy": 1, "modifiedDate": "2025-05-09T07:58:26.437Z", "userId": 1, "avatar": "text", "avatarPath": "text", "isActive": 1, "code": 1, "address": "text", "deleteFlag": 1, "linkExpires": 1, "usergroup": { "createdBy": 1, "createdDate": "2025-05-09T07:58:26.437Z", "modifiedBy": 1, "modifiedDate": "2025-05-09T07:58:26.437Z", "groupId": 1, "name": "text" } }
Add a new user.
POST /auth/create-user HTTP/1.1 Host: Authorization: text Content-Type: application/x-www-form-urlencoded Accept: */* Content-Length: 105 "username='text'&password='text'&firstName='text'&lastName='text'&email='text'&userGroupId=1"
{ "username": "text", "password": "text", "firstName": "text", "lastName": "text", "email": "text", "deleteFlag": 1, "userGroupId": "text", "isActive": 1, "createdDate": "2025-05-09T07:58:26.437Z", "userId": 1 }
Update a user.
PUT /auth/update-user/{id} HTTP/1.1 Host: Authorization: text Content-Type: application/x-www-form-urlencoded Accept: */* Content-Length: 105 "username='text'&password='text'&firstName='text'&lastName='text'&email='text'&userGroupId=1"
Forgrt password
POST /auth/forgot-password HTTP/1.1 Host: Authorization: text Content-Type: application/x-www-form-urlencoded Accept: */* Content-Length: 16 "email='text'"
Change Password
PUT /auth/change-password HTTP/1.1 Host: Authorization: text Content-Type: application/x-www-form-urlencoded Accept: */* Content-Length: 43 "oldPassword='text'&newPassword='text'"
Edit a profile for a user.
POST /auth/edit-profile HTTP/1.1 Host: Authorization: text Content-Type: application/x-www-form-urlencoded Accept: */* Content-Length: 88 "username='text'&email='text'&avatar='text'&phoneNumber='text'&address='text'"
{ "createdBy": 1, "createdDate": "2025-05-09T07:58:26.437Z", "modifiedBy": 1, "modifiedDate": "2025-05-09T07:58:26.437Z", "userId": 1, "userGroupId": 1, "username": "text", "password": "text", "firstName": "text", "lastName": "text", "email": "text", "avatar": "text", "avatarPath": "text", "isActive": 1, "code": 1, "ip": "text", "phoneNumber": "text", "address": "text", "deleteFlag": 1, "linkExpires": 1, "forgetPasswordKey": "text", "permission": 1, "usergroup": null }
This is for user forget password link.
POST /auth/forgot-password-link HTTP/1.1 Host: Content-Type: application/x-www-form-urlencoded Accept: */* Content-Length: 18 "emailId='text'"
Users reset their password
PUT /auth/reset-password HTTP/1.1 Host: Content-Type: application/x-www-form-urlencoded Accept: */* Content-Length: 35 "newPassword='text'&key='text'"
Get list of permission module.
Get permission.
Get permission from me
GET /permission-module/list?limit=1 HTTP/1.1 Host: Authorization: text Accept: */*
Add permission module.
POST /permission-module/add-permission HTTP/1.1 Host: Authorization: text Content-Type: application/x-www-form-urlencoded Accept: */* Content-Length: 43 "refType=1&refId=1&permission='text'"
GET /permission-module/get-permission?refType=1&refId=1 HTTP/1.1 Host: Authorization: text Accept: */*
GET /permission-module/permission-me HTTP/1.1 Host: Authorization: text Accept: */*