RizrvDoc

Did You Know?

FRANCHISE

Welcome to Rizrv ! To get characters you need to make a call to the following url :

GET ALL FRANCHISE

GEThttps://apis.rizrv.in/api/franchise

Use LARAVEL cURL

                                 
                                             $token = "USER_AUTH_TOKEN";
                                             $ch = curl_init();
                                             $header = array();
                                             $header[] = 'Content-length: 0';
                                             $header[] = 'Content-type: application/json';
                                             $header[] = 'Authorization: Bearer '. $token;
                                             curl_setopt($ch, CURLOPT_URL,"https://apis.rizrv.in/api/franchise");
                                             curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
                                             curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, 'GET' );
                                             curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                                             $server_output = curl_exec($ch);
                                             curl_close($ch);
                                             $response = json_decode($server_output, true);
                                             if ($response) { ... } else { ... }
                                    
                                    
{
  "status": 200,
  "message": "success",
  "franchise": [
      {
          "id": 8,
          "name": "French",
          "first_name": "Frenchone",
          "last_name": "Modellast",
          "email": "franchise@admin.com",
          "email_verified_at": null,
          "password": "$2y$10$Ooll8YwWRfTEmk65R0CRTuKzn6TCJLyHnrg3Nu7mbKdG3l5/83eoK",
          "remember_token": null,
          "activated": 1,
          "token": "LqbyjKvEWk9ex3boF8qXFEoBgwKl6Uhh3QausgJApf8th5aWPDAFkpJiDGZH7Kk9",
          "signup_ip_address": null,
          "signup_confirmation_ip_address": null,
          "signup_sm_ip_address": null,
          "admin_ip_address": null,
          "updated_ip_address": null,
          "deleted_ip_address": null,
          "desktop_mac_id": null,
          "app_device_id": null,
          "google2fa_secret": null,
          "created_at": "2023-08-08T11:22:01.000000Z",
          "updated_at": "2023-08-08T12:09:20.000000Z",
          "deleted_at": null,
          "detail": {
              "id": 8,
              "franchise_id": 8,
              "location": null,
              "bio": null,
              "dob": null,
              "address": null,
              "phone": null,
              "twitter_username": null,
              "github_username": null,
              "avatar": null,
              "avatar_status": 0,
              "created_at": "2023-08-08T11:22:01.000000Z",
              "updated_at": "2023-08-08T11:22:01.000000Z",
              "deleted_at": null
          },
          "role": {
              "id": 5,
              "role_id": 2,
              "franchise_id": 8,
              "created_at": null,
              "updated_at": null,
              "deleted_at": null,
              "role": {
                  "id": 2,
                  "name": "User",
                  "slug": "user",
                  "description": "User Role",
                  "created_at": "2023-08-03T17:43:30.000000Z",
                  "updated_at": "2023-08-03T17:43:30.000000Z",
                  "deleted_at": null
              }
          }
      }
  ]
}
                           

Welcome to Rizrv ! To add new franchise call to the following url :

FRANCHISE DATE STORE

POSThttps://apis.rizrv.in/api/franchise/store

Parameter

Field Type

name

String

first_name

String

last_name

String

email

String

password

String

confirm_password

String

role

Integer

Use LARAVEL cURL

                                 
                                              $token = "USER_AUTH_TOKEN";
                                              $ch = curl_init();
                                              $header = array();
                                              $header[] = 'Content-length: 0';
                                              $header[] = 'Content-type: application/json';
                                              $header[] = 'Authorization: Bearer '. $token;
                                              curl_setopt($ch, CURLOPT_URL,"https://apis.rizrv.in/api/franchise/store");
                                              curl_setopt($ch, CURLOPT_POST, 1);
                                              curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
                                              curl_setopt($ch, CURLOPT_POSTFIELDS,$_POST);
                                              curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                                              $server_output = curl_exec($ch);
                                              curl_close($ch);
                                              $response = json_decode($server_output, true);
                                              if ($response) { ... } else { ... }
                                 
                              
{
  "status": 200,
  "message": "success",
  "user": [
      {
          "id": 7,
          "name": "LavneetBh",
          "first_name": "Lavneet",
          "last_name": "Bhand",
          "email": "lavneet1@gmail.com",
          "email_verified_at": null,
          "password": "$2y$10$QDmpXmcpRECrSgh/DPi7nubwONORPEqUaEvlNJf0pceHfWU5yiGHi",
          "remember_token": null,
          "activated": 1,
          "token": "nNFN6VAqGOLUpyBef9aoqqttxB4XWAem4XDTmNFNK4NujhyFksV7bgwN6Tpcxkvs",
          "signup_ip_address": null,
          "signup_confirmation_ip_address": null,
          "signup_sm_ip_address": null,
          "admin_ip_address": null,
          "updated_ip_address": null,
          "deleted_ip_address": null,
          "created_at": "2023-08-04T11:43:07.000000Z",
          "updated_at": "2023-08-04T11:43:07.000000Z",
          "deleted_at": null,
          "profile": {
              "id": 5,
              "user_id": 7,
              "location": null,
              "bio": null,
              "dob": null,
              "address": null,
              "phone": null,
              "twitter_username": null,
              "github_username": null,
              "avatar": null,
              "avatar_status": 0,
              "created_at": "2023-08-04T11:43:07.000000Z",
              "updated_at": "2023-08-04T11:43:07.000000Z",
              "deleted_at": null
          },
          "role": {
              "id": 4,
              "USER_ID": 1,
              "user_id": 7,
              "created_at": null,
              "updated_at": null,
              "deleted_at": null,
              "role": {
                  "id": 1,
                  "name": "Admin",
                  "slug": "admin",
                  "description": "Admin Role",
                  "created_at": "2023-08-03T17:43:30.000000Z",
                  "updated_at": "2023-08-03T17:43:30.000000Z",
                  "deleted_at": null
              }
          }
      }
  ]
}
                              

Welcome to Rizrv ! To update users call to the following url using POST Method:

USER UPDATE

POSThttps://apis.rizrv.in/api/franchise/update/USER_ID

Parameter

Field Type

name

String

first_name

String

last_name

String

email

String

password

String

confirm_password

String

role

Integer

Use LARAVEL cURL

                                
                                    $token = "USER_AUTH_TOKEN";
                                    $ch = curl_init();
                                    $header = array();
                                    $header[] = 'Content-length: 0';
                                    $header[] = 'Content-type: application/json';
                                    $header[] = 'Authorization: Bearer '. $token;
                                    curl_setopt($ch, CURLOPT_URL,"https://apis.rizrv.in/api/franchise/update/USER_ID");
                                    curl_setopt($ch, CURLOPT_POST, 1);
                                    curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
                                    curl_setopt($ch, CURLOPT_POSTFIELDS,$_POST);
                                    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                                    $server_output = curl_exec($ch);
                                    curl_close($ch);
                                    $response = json_decode($server_output, true);
                                    if ($response) { ... } else { ... }
                                
                            
{
    "status": 200,
    "message": "updated",
    "user": {
        "id": 13,
        "name": "SurajKumar",
        "first_name": "Suraj",
        "last_name": "Kumar",
        "email": "manishkumar@gmail.com",
        "email_verified_at": null,
        "password": "$2y$10$wlQOCUGJ5R5xW6FscrnbDuyQpOKi3Eu0DDm9iSCMYkPBQLrGpo2.i",
        "remember_token": null,
        "activated": 1,
        "token": "mHLtdmvfLQhxfxfXJsoAaL4KoYcoNe6rXCPc50sRUNA84cVeW8DcFjASRaVf1VA3",
        "signup_ip_address": null,
        "signup_confirmation_ip_address": null,
        "signup_sm_ip_address": null,
        "admin_ip_address": null,
        "updated_ip_address": null,
        "deleted_ip_address": null,
        "desktop_mac_id": null,
        "app_device_id": null,
        "google2fa_secret": null,
        "enable_2fa": 0,
        "lat_long": null,
        "created_at": "2023-08-18T06:11:53.000000Z",
        "updated_at": "2023-08-18T06:24:34.000000Z",
        "deleted_at": null
    }
}
                                     

Welcome to Rizrv !To delete FRANCHISE call to the following url using DELETE Method:

FRANCHISE DELETE

DELETEhttps://apis.rizrv.in/api/franchise/delete/USER_ID

Use LARAVEL cURL

                                
                                        $token = "USER_AUTH_TOKEN";
                                        $ch = curl_init();
                                        $header = array();
                                        $header[] = 'Content-length: 0';
                                        $header[] = 'Content-type: application/json';
                                        $header[] = 'Authorization: Bearer '. $token;
                                        curl_setopt($ch, CURLOPT_URL,"https://apis.rizrv.in/api/franchise/delete/USER_ID");
                                        curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
                                        curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
                                        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                                        $server_output = curl_exec($ch);
                                        curl_close($ch);
                                        $response = json_decode($server_output, true);
                                        if ($response) { ... } else { ... }
                                
                            
{
    "status": 200,
    "message": "Deleted"
}