File modules/cms/api/APIResponse.class.php

Last commit: Sat Oct 17 01:14:30 2026 +0200	Jan Dankert	New: Using a structured class for the API-Response. The output for GET-Requests is now without the "output" layer.
1 <?php 2 3 namespace cms\api; 4 5 class APIResponse 6 { 7 public function __construct ( 8 public string $message, 9 #[ArrayOf(Notice::class)] 10 public array $notices, 11 public array $errors, 12 public string $status, 13 public string $notice_status, 14 public bool $success, 15 public Session $session, 16 public string $version, 17 public int $api, 18 public Exception|null $cause, 19 ){ 20 } 21 22 }
Download modules/cms/api/APIResponse.class.php
History Sat, 17 Oct 2026 01:14:30 +0200 Jan Dankert New: Using a structured class for the API-Response. The output for GET-Requests is now without the "output" layer. Thu, 15 Oct 2026 01:39:59 +0200 Jan Dankert New: A much better generation of the OpenAPI Interface documents, supports now the UI API Objects.