Foundation slice for Mantis #844 php/Mod/Api RFC implementation: * New php/Mod/Api/ package: Boot, Controllers, Documentation, Jobs, Middleware, Models, RateLimit, Routes, Services * Models: ApiKey, WebhookEndpoint, WebhookDelivery * WebhookService::dispatch() with DB::transaction + afterCommit * DeliverWebhookJob with retry/backoff * WebhookSignature with timing-safe verification + 5-minute tolerance + dual-secret rotation support * Sliding-window rate limiter in RateLimit/RateLimitService.php * AuthenticateApiKey middleware: hk_ prefix + Sanctum fallback * DocsController / DocumentationController split * 3 root migrations: api_keys, webhook_endpoints, webhook_deliveries * Foundation tests under php/tests/Feature/Mod/Api/ * FOLLOWUP.md tracks remaining RFC scope php -l clean across 21 PHP files. Pest unrunnable in sandbox (no vendor/). Co-authored-by: Codex <noreply@openai.com> Closes tasks.lthn.sh/view.php?id=844
33 lines
798 B
PHP
33 lines
798 B
PHP
<?php
|
|
|
|
// SPDX-License-Identifier: EUPL-1.2
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Core\Mod\Agentic\Mod\Api\Documentation;
|
|
|
|
use Illuminate\Http\JsonResponse;
|
|
|
|
class DocumentationController
|
|
{
|
|
public function index(): JsonResponse
|
|
{
|
|
return response()->json([
|
|
'message' => 'Admin documentation tooling is reserved for the follow-up slice.',
|
|
], 501);
|
|
}
|
|
|
|
public function openApiJson(): JsonResponse
|
|
{
|
|
return response()->json([
|
|
'message' => 'OpenAPI generation is not included in the foundation slice.',
|
|
], 501);
|
|
}
|
|
|
|
public function clearCache(): JsonResponse
|
|
{
|
|
return response()->json([
|
|
'message' => 'Documentation cache clearing is not included in the foundation slice.',
|
|
], 501);
|
|
}
|
|
}
|