-
Notifications
You must be signed in to change notification settings - Fork 7
DNSLab API docs
Akbar Asghari edited this page May 9, 2022
·
2 revisions
سلام این داکیومنت برای توسعه دهندگان ایجاد شده است
- Auth
- DNS
- Comments
- IP
- Files
Verb | Method | RequestBody | Body | Response | Description |
---|---|---|---|---|---|
POST | Auth/Authenticate | Application/json | {"usernameOrEmail": "string","password": "string"} |
{"token": "JWT Token"} |
Authenticate User |
POST | Auth/ForgetPassword | Application/json | {"email": "string"} |
bool | Send User reset password link to email |
POST | Auth/ResetPassword | Application/json | {"token": "string", "password": "string"} |
bool | Reset User password with sent token |
POST | Auth/Register | Application/json | {"username": "string", "password": "string", "firstName": "string", "lastName": "string", "email": "string", "mobile": "string"} |
{"token": "JWT Token"} |
Register User |
PUT | Auth/ChangePassword | Application/json | {"currentPassword": "string", "newPassword": "string"} |
bool | Change Password |
PUT | Auth/Update | Application/json | {"username": "string", "firstName": "string", "lastName": "string", "email": "string", "mobile": "string"} |
bool | Update User |
GET | Auth/Get | {"token": "", "id": "00000000-0000-0000-0000-00000000000", "username": "username", "firstName": "firstName", "lastName": "lastName", "email": "[email protected]", "mobile": "09123456789", "role": "User", "createDate": "2022-02-28T07:37:23.4882372", "updateDate": "2022-02-28T07:37:38.579618"}
|
Get User information | ||
GET | Auth/UsersCount | int | Get User counts |
this methods need authorize in header with JWT Token
- Update
- Get
- UsersCount