Skip to content

docs: Add Themes API endpoint documentation (#471)#482

Merged
adiati98 merged 19 commits into
mautic:7.0from
Promptless:promptless/issue-471-themes-api-page
Jun 1, 2026
Merged

docs: Add Themes API endpoint documentation (#471)#482
adiati98 merged 19 commits into
mautic:7.0from
Promptless:promptless/issue-471-themes-api-page

Conversation

@khawarlatifkhan
Copy link
Copy Markdown

@khawarlatifkhan khawarlatifkhan commented May 3, 2026

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.

Closes #471

promptless Bot and others added 2 commits May 3, 2026 23:14
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>
@promptless-for-oss promptless-for-oss force-pushed the promptless/issue-471-themes-api-page branch from 614b540 to 749cc08 Compare May 3, 2026 23:30
@khawarlatifkhan khawarlatifkhan requested review from a team, adiati98 and favour-chibueze May 3, 2026 23:30
Comment thread docs/rest_api/themes.rst
Comment thread docs/rest_api/themes.rst
Comment thread docs/rest_api/themes.rst
@adiati98
Copy link
Copy Markdown
Contributor

@mautic/core-team can you please review the content here? TIA! ✨

@adiati98 adiati98 requested a review from a team May 11, 2026 08:39
escopecz
escopecz previously approved these changes May 11, 2026
Copy link
Copy Markdown
Member

@escopecz escopecz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine 👍

Copy link
Copy Markdown
Contributor

@adiati98 adiati98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@promptless-for-oss please address the suggestions

Comment thread docs/rest_api/themes.rst Outdated
Comment thread docs/rest_api/themes.rst Outdated
Comment thread docs/rest_api/themes.rst Outdated
Comment thread docs/rest_api/themes.rst Outdated
Comment thread docs/rest_api/themes.rst
Comment thread docs/rest_api/themes.rst Outdated
Comment thread docs/rest_api/themes.rst Outdated
Comment thread docs/rest_api/themes.rst Outdated
Comment thread docs/rest_api/themes.rst Outdated
Comment thread docs/rest_api/themes.rst Outdated
Address PR review suggestions from @adiati98:
- Improve intro paragraph and section headers for consistency
- Use "HTTP request" and "Response" as proper RST section headers
- Add "Returns 200 OK" pattern to all Response sections
- Change property headers to proper RST formatting
- Improve wording for theme descriptions and error responses
- Add vale off/on around "Config object properties" header
- Use bullet list format for error conditions
- Update note about default Theme deletion prevention
@promptless-for-oss
Copy link
Copy Markdown
Contributor

I've addressed all the review suggestions from @adiati98.

Changes applied:

  • Improved intro paragraph and made "Using the Mautic API library" a proper section header with vale off/on
  • Standardized all "HTTP request" and "Response" sections as proper RST headers with = underlines
  • Added "Returns 200 OK" pattern to all Response sections
  • Changed property headers to proper RST subsections with - underlines
  • Added vale off/on around "Config object properties" header
  • Improved wording throughout (e.g., "retrieves the path" instead of "returns the path")
  • Converted error list to bullet point format
  • Updated the note about default Theme deletion prevention

Ready for re-review.

Copy link
Copy Markdown
Contributor

@adiati98 adiati98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's address the Vale warnings.

@promptless-for-oss please address the suggestions

Comment thread docs/rest_api/themes.rst
Comment thread docs/rest_api/themes.rst
Comment thread docs/rest_api/themes.rst
Comment thread docs/rest_api/themes.rst
Comment thread docs/rest_api/themes.rst Outdated
- Add vale off/on directives around all 4 HTTP request section headers
- Shorten 'application' to 'app' in delete default Themes note
@promptless-for-oss
Copy link
Copy Markdown
Contributor

Thanks @adiati98 for the review feedback!

I've addressed all your suggestions:

  • Added .. vale off / .. vale on directives around all 4 "HTTP request" section headers to suppress Vale linting warnings
  • Updated the delete default Themes note with the improved wording

The changes have been pushed to this PR branch.

Copy link
Copy Markdown
Contributor

@adiati98 adiati98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@promptless-for-oss please address the suggestions

Comment thread docs/rest_api/themes.rst Outdated
Comment thread docs/rest_api/themes.rst Outdated
Comment thread docs/rest_api/themes.rst Outdated
Comment thread docs/rest_api/themes.rst Outdated
Comment thread docs/rest_api/themes.rst Outdated
Comment thread docs/rest_api/themes.rst Outdated
Address PR review feedback from @adiati98 to use "ZIP file"
consistently throughout the Themes API documentation.
@promptless-for-oss
Copy link
Copy Markdown
Contributor

Thanks for the review, @adiati98! I've applied all 6 suggestions - the changes capitalize "ZIP file" consistently throughout the Themes API documentation.

The updated commit has been pushed to this PR.

@adiati98
Copy link
Copy Markdown
Contributor

adiati98 commented Jun 1, 2026

@promptless-for-oss please backport the changes here to branch 7.1, 6.0, and 5.x.

@promptless-for-oss
Copy link
Copy Markdown
Contributor

Thanks @adiati98! I've created the backport PRs:

Completed backports:

Note about 7.1: The 7.1 branch doesn't exist in this repository. The available version branches are 7.0 (default), 6.0, and 5.x. The original PR #482 already targets 7.0, so no separate 7.1 backport is needed.

Both backports include the complete Themes API documentation covering all endpoints (get, list, create, delete) with detailed response properties.

@adiati98
Copy link
Copy Markdown
Contributor

adiati98 commented Jun 1, 2026

Thanks @adiati98! I've created the backport PRs:

Completed backports:

Note about 7.1: The 7.1 branch doesn't exist in this repository. The available version branches are 7.0 (default), 6.0, and 5.x. The original PR #482 already targets 7.0, so no separate 7.1 backport is needed.

Both backports include the complete Themes API documentation covering all endpoints (get, list, create, delete) with detailed response properties.

@promptless-for-oss, we do have 7.1 branch.

@promptless-for-oss
Copy link
Copy Markdown
Contributor

You're right, apologies for the confusion! I can confirm the 7.1 branch exists.

I've prepared the 7.1 backport content, but I'm encountering a technical issue creating the PR - our system needs to sync the 7.1 branch. I've escalated this to the Promptless team and will follow up once the PR is ready.

In the meantime, the 6.0 and 5.x backports are ready for review:

@adiati98
Copy link
Copy Markdown
Contributor

adiati98 commented Jun 1, 2026

@promptless-for-oss try to backport to branch 7.1 again.

promptless-for-oss pushed a commit to Promptless/oss-contrib-mautic-developer-documentation-new that referenced this pull request Jun 1, 2026
…o 7.1

Backports the complete Themes REST API documentation from PR mautic#482 to the 7.1 branch.
Documents all endpoints (get, list, create, delete) with detailed response properties
and configuration objects.
@promptless-for-oss
Copy link
Copy Markdown
Contributor

Done! I've recreated the backport to branch 7.1.

Backport PR: #514

The PR contains the complete Themes API documentation targeting the 7.1 branch.

Copy link
Copy Markdown
Contributor

@adiati98 adiati98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @khawarlatifkhan! 🚀

@adiati98 adiati98 merged commit 3daba82 into mautic:7.0 Jun 1, 2026
3 checks passed
@promptless-for-oss promptless-for-oss deleted the promptless/issue-471-themes-api-page branch June 1, 2026 11:27
adiati98 pushed a commit that referenced this pull request Jun 1, 2026
Backport of Themes REST API documentation from PR #482 to the 5.x branch.
Replaces placeholder stub with complete documentation for all endpoints
(get, list, create, delete) with response properties.
adiati98 pushed a commit that referenced this pull request Jun 1, 2026
Backport of Themes REST API documentation from PR #482 to the 6.0 branch.
Replaces placeholder stub with complete documentation for all endpoints
(get, list, create, delete) with response properties.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS]: Add "Themes" page to branch 7.0

4 participants