RizrvDoc

Did You Know?

Services

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

GET ALL Services

GEThttps://apis.rizrv.in/api/services/ca/

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/services/ca/");
                                             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",
  "services": [
      {
          "id": 1,
          "name": "electronic",
          "description": "Loren Ipsumn",
          "category_id ": "1",
          "price  ": "200.00",
          "status": "1",
          "created_at": "2023-08-08T11:22:01.000000Z",
          "updated_at": "2023-08-08T12:09:20.000000Z",
      }
  ]
}
                           

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

SERVICES CATEGORY DATE STORE

POSThttps://apis.rizrv.in/api/services/ca/store

Parameter

Field Type

name

String

price

Double

description

String

category_id

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/services/ca/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",
    "services": {
         "name": "electronic",
         "description": "Loren Ipsumn",
         "category_id ": "1",
         "price  ": "200.00",
         "status": 1,
         "updated_at": "2023-08-24T06:21:37.000000Z",
         "created_at": "2023-08-24T06:21:37.000000Z",
         "id": 1
    }
}
                              

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

SERVICES UPDATE

POSThttps://apis.rizrv.in/ api/services/ca/update/{service_id}

Parameter

Field Type

name

String

price

Double

description

String

category_id

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/services/ca/update/{service_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",
    "category": {
        "id": 23,
        "name": "Welcome To Rizrv",
        "description": "welcome to Rizrv panel",
        "category_id ": "1",
        "price  ": "250.00",
        "status": 1,
        "parent": null,
        "created_at": "2023-08-24T08:38:33.000000Z",
        "updated_at": "2023-08-24T09:42:27.000000Z"
    }
}
                                     

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

SERVICES DELETE

DELETEhttps://apis.rizrv.in/api/services/ca/destroy/{service_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/services/category/destroy/{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"
}