Skip to content

docs: Port REST API Landing Pages endpoint from legacy docs#574

Open
promptless-for-oss wants to merge 1 commit into
mautic:7.2from
Promptless:promptless/port-rest-api-pages-72
Open

docs: Port REST API Landing Pages endpoint from legacy docs#574
promptless-for-oss wants to merge 1 commit into
mautic:7.2from
Promptless:promptless/port-rest-api-pages-72

Conversation

@promptless-for-oss

Copy link
Copy Markdown
Contributor

Open this suggestion in Promptless to view citations and reasoning process

Replaces the placeholder stub in docs/rest_api/pages.rst with the full Landing Pages REST API reference. Ported from the legacy developer-docs Markdown and updated against the current Page entity API metadata on the mautic/mautic 7.x branch. Adds Get, List, Create, Edit, and Delete sections, refreshes the property list (including the new isPreferenceCenter and noIndex fields), and drops the stale description field. Targets the 7.2 default branch per team direction. Refs #448, #447.

Trigger Events


Tip: See how your feedback shapes Promptless in Agent Knowledge Base 🧠

Replace the placeholder stub in docs/rest_api/pages.rst with the full
Landing Pages REST API reference, ported from the legacy developer-docs
Markdown and updated against the current Page entity API metadata on 7.x.

Adds Get, List, Create, Edit, and Delete sections following the modern
RST conventions used across the REST API pages. Refreshes the property
list to match the API-exposed fields, including the new isPreferenceCenter
and noIndex properties, and drops the stale description field.

Refs mautic#448, mautic#447
Comment thread docs/rest_api/pages.rst
@@ -1,14 +1,482 @@
Pages
#####
Landing Pages

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ported the overall structure and the Get/List/Create/Edit/Delete endpoint sections of pages.rst from the legacy _api_endpoint_pages.md Markdown source linked in porting issue #447.

Source: https://github.com/mautic/developer-documentation/blob/main/source/includes/_api_endpoint_pages.md

Comment thread docs/rest_api/pages.rst

.. _get Landing Page properties:

.. vale off

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Refreshed the Landing Page properties list against Page::loadApiMetadata() in Page.php on the 7.x branch: added the isPreferenceCenter and noIndex properties it exposes and removed the description field the legacy doc listed, which the API metadata does not include.

Source: https://github.com/mautic/mautic/blob/7.x/app/bundles/PageBundle/Entity/Page.php

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.

1 participant