mirror of
https://github.com/Dadechin/Dashboard-XRoom.git
synced 2025-07-03 00:34:34 +00:00
81 lines
1.9 KiB
ReStructuredText
81 lines
1.9 KiB
ReStructuredText
# https://marketplace.visualstudio.com/items?itemName=humao.rest-client
|
|
|
|
POST http://127.0.0.1:8000/signup
|
|
Content-Type: application/json
|
|
|
|
{ "username": "adam3", "password": "Pass1234!", "email": "adam2@mail.com" , "mobile_number":"09140086509" }
|
|
|
|
###
|
|
|
|
POST http://127.0.0.1:8000/login
|
|
Content-Type: application/json
|
|
|
|
{ "mobile_number":"09140086509", "password": "12345678" }
|
|
|
|
###
|
|
|
|
GET http://127.0.0.1:8000/sendSmsVerification
|
|
Content-Type: application/json
|
|
Authorization: token 224648840820ad0948ddee5b00d53ae67c040c49
|
|
|
|
###
|
|
|
|
POST http://127.0.0.1:8000/submitSmsVerification
|
|
Content-Type: application/json
|
|
Authorization: token d3f1b03996140c8f7561d67221953ff704b482cb
|
|
|
|
{ "verification_sms_code": "807806" }
|
|
|
|
###
|
|
|
|
GET http://127.0.0.1:8000/test_token
|
|
Content-Type: application/json
|
|
Authorization: token 224648840820ad0948ddee5b00d53ae67c040c49
|
|
# Authorization: token 53e2b003a92e22aca85c95088a438ece8d9a5dfb
|
|
|
|
|
|
###
|
|
|
|
GET http://127.0.0.1:8000/getInfo
|
|
Content-Type: application/json
|
|
Authorization: token 224648840820ad0948ddee5b00d53ae67c040c49
|
|
# Authorization: token 53e2b003a92e22aca85c95088a438ece8d9a5dfb
|
|
|
|
|
|
###
|
|
GET http://127.0.0.1:8000/templatequestions
|
|
Content-Type: application/json
|
|
Authorization: token c362581117e209735d412226e54596867e370892
|
|
|
|
|
|
###
|
|
GET http://127.0.0.1:8000/templatequestionscgm
|
|
Content-Type: application/json
|
|
Authorization: token c362581117e209735d412226e54596867e370892
|
|
|
|
|
|
###
|
|
GET http://127.0.0.1:8000/templatepages
|
|
Content-Type: application/json
|
|
Authorization: token c362581117e209735d412226e54596867e370892
|
|
|
|
|
|
###
|
|
|
|
POST http://127.0.0.1:8000/savetemplateform
|
|
Content-Type: application/json
|
|
Authorization: token c362581117e209735d412226e54596867e370892
|
|
|
|
{ "question_id": "1", "answer_text": "answer1" }
|
|
|
|
###
|
|
|
|
|
|
###
|
|
|
|
POST http://127.0.0.1:8000/editProfile
|
|
Content-Type: application/json
|
|
Authorization: token d3f1b03996140c8f7561d67221953ff704b482cb
|
|
|
|
{ "verification_sms_code": "807806" }
|