PHP Classes

File: TestCases/GET/CategorySingle.php

Recommend this page to a friend!
  Classes of Ramesh Narayan Jangid (Sharma)   PHP Microservices Framework   TestCases/GET/CategorySingle.php   Download  
File: TestCases/GET/CategorySingle.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: PHP Microservices Framework
Setup microservices apps with configuration arrays
Author: By
Last change: web.php
Date: 4 days ago
Size: 650 bytes
 

Contents

Class file image Download
<?php

/**
 * TestCases
 * php version 8.3
 *
 * @category TestCases
 * @package Microservices
 * @author Ramesh N Jangid <[email protected]>
 * @copyright 2025 Ramesh N Jangid
 * @license MIT https://opensource.org/license/mit
 * @link https://github.com/polygoncoin/Microservices
 * @since Class available since Release 1.0.0
 */

namespace Microservices\TestCases;

use
Microservices\App\Web;

$header = $defaultHeaders;
if (isset(
$token)) {
   
$header[] = "Authorization: Bearer {$token}";
}

return
Web::trigger(
   
homeURL: $homeURL,
   
method: 'GET',
   
route: '/category/1',
   
header: $header,
   
payload: ''
);