trypost/app/Http/Resources/Api
Paulo Castellano ce6ee04883 Bring post platform meta (aspect ratio) to parity across API and MCP
PR #82 made `meta.aspect_ratio` crop Facebook (and already Instagram) feed
images at publish time, but the API and MCP surfaces only half-supported it:
you couldn't set meta at creation, the value wasn't validated, and responses
never returned it. This closes those gaps.

- New `AspectRatio` enum is the single source of truth for the allowed ratios
  (1:1, 4:5, 16:9, original). App/API/MCP requests now validate via
  `Rule::enum(AspectRatio::class)` — an invalid ratio is rejected everywhere
  instead of silently center-cropping to square.
- API `StorePostRequest` and MCP `CreatePostTool` now accept `platforms.*.meta`;
  `CreatePost` persists it. MCP create documents `meta` in its schema.
- `Api\PostPlatformResource` now exposes `meta`, so API and MCP responses return
  the aspect_ratio (and other per-platform meta) a client set.
2026-06-10 15:36:47 -03:00
..
ApiKeyResource.php feat: migrate custom API token implementation to Laravel Passport for authentication and token management 2026-05-03 18:38:17 -03:00
LabelResource.php refactor: restructure to Actions, subdomain routes (app/api), API tokens 2026-03-29 19:24:28 -03:00
MediaUploadResource.php refactor(media): MediaUploadResource + ws→workspace_id + cleanup 2026-05-15 16:48:09 -03:00
PlatformContentTypesResource.php feat: complete create + publish post flow via MCP and REST API 2026-05-04 08:12:28 -03:00
PostMediaAttachResource.php feat: add multipart media upload endpoint and split URL flow 2026-05-04 18:00:03 -03:00
PostMetricsResource.php feat: complete create + publish post flow via MCP and REST API 2026-05-04 08:12:28 -03:00
PostPlatformResource.php Bring post platform meta (aspect ratio) to parity across API and MCP 2026-06-10 15:36:47 -03:00
PostPreviewResource.php feat: complete create + publish post flow via MCP and REST API 2026-05-04 08:12:28 -03:00
PostResource.php refactor: standardize MCP tool responses using API resources and enforce strict structural validation in feature tests 2026-05-03 21:34:20 -03:00
SignatureResource.php chore: remove deprecated localization files 2026-05-03 15:23:25 -03:00
SocialAccountResource.php refactor: standardize MCP tool responses using API resources and enforce strict structural validation in feature tests 2026-05-03 21:34:20 -03:00
WorkspaceResource.php refactor: remove onboarding flow, implement brand analysis services, and replace setup middleware with account readiness checks 2026-04-16 23:05:51 -03:00