| 1234567891011121314151617181920212223 |
- <?php
- declare(strict_types=1);
- /**
- * The OpenAPI document for api/v1, with the server URL of this installation
- * filled in.
- *
- * Served through PHP because the repository denies direct access to .json
- * files; openapi.json next to this file is the source of truth.
- */
- require_once __DIR__ . "/inc/handbook.php";
- $json = handbookOpenApiJson();
- header("Content-Type: application/json; charset=utf-8");
- header("Content-Disposition: inline; filename=\"manage-openapi.json\"");
- header("Content-Length: " . (string) strlen($json));
- header("X-Content-Type-Options: nosniff");
- header("Cache-Control: public, max-age=300");
- echo $json;
|