docs: Add Themes API endpoint documentation (#471)#482
docs: Add Themes API endpoint documentation (#471)#482khawarlatifkhan wants to merge 13 commits into
Conversation
Migrate Themes REST API documentation from legacy markdown to RST format. Content verified against Mautic 7.0 source code (ThemeApiController.php and ThemeHelper.php). Documents all endpoints: get, list, create, delete. Adds detailed response properties including theme config fields.
Co-authored-by: promptless[bot] <promptless[bot]@users.noreply.github.com>
614b540 to
749cc08
Compare
| @@ -1,14 +1,284 @@ | |||
| Themes | |||
There was a problem hiding this comment.
Ported endpoint documentation structure, PHP code examples, and JSON response examples from the legacy _api_endpoint_themes.md file.
Source: https://github.com/mautic/developer-documentation/blob/main/source/includes/_api_endpoint_themes.md
| } | ||
|
|
||
| **Response Properties** | ||
|
|
There was a problem hiding this comment.
Verified API endpoints and behavior against ThemeApiController.php in Mautic 7.0 source. Confirmed newAction, getAction, listAction, and deleteAction methods match documented endpoints.
|
|
||
| * - Name | ||
| - Type | ||
| - Description |
There was a problem hiding this comment.
Added response properties (name, key, config, builder) and documented default theme deletion behavior based on ThemeHelper.php. The getInstalledThemes() method returns theme details with config; default themes are hidden rather than deleted.
Source: https://github.com/mautic/mautic/blob/7.x/app/bundles/CoreBundle/Helper/ThemeHelper.php
|
@mautic/core-team can you please review the content here? TIA! ✨ |
Migrates the Themes REST API documentation from legacy markdown to RST format. Content verified against Mautic 7.0 source code. Documents all endpoints (get, list, create, delete) with detailed response properties.