docs: Port REST API Landing Pages endpoint from legacy docs#574
Open
promptless-for-oss wants to merge 1 commit into
Open
docs: Port REST API Landing Pages endpoint from legacy docs#574promptless-for-oss wants to merge 1 commit into
promptless-for-oss wants to merge 1 commit into
Conversation
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
| @@ -1,14 +1,482 @@ | |||
| Pages | |||
| ##### | |||
| Landing Pages | |||
Contributor
Author
There was a problem hiding this comment.
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
|
|
||
| .. _get Landing Page properties: | ||
|
|
||
| .. vale off |
Contributor
Author
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
blockedlabel is to set content, structure, and tone in one branch, then backport/cherry pick i...Tip: See how your feedback shapes Promptless in Agent Knowledge Base 🧠