Requests and Responses
Typical API communication consists of a request sent by the client and a response returned by the server. A request may contain an HTTP method, resource address, headers, and, depending on the method, data sent in the request body. A response contains, among other things, a status code, headers, and optionally data.
$images = [
$section['image'],
'/assets/images/rand_1.png',
'/assets/images/rand_2.png',
'/assets/images/rand_3.png',
'/assets/images/rand_4.png',
'/assets/images/rand_5.png',
'/assets/images/rand_6.png',
'/assets/images/rand_7.png',
'/assets/images/rand_8.png',
'/assets/images/rand_9.png',
'/assets/images/rand_10.png',
'/assets/images/rand_11.png',
'/assets/images/rand_12.png',
'/assets/images/rand_13.png',
'/assets/images/rand_14.png',
'/assets/images/rand_15.png',
];
$imagesJson = htmlspecialchars(json_encode($images), ENT_QUOTES, 'UTF-8');
?>