[TASK] Update PageAPI Response when Saving Style Properties
Description
Currently the /api/v1/page/{pageId}/content resource is returning an "ok" message when a successful save request is made, but this doesn't deliver relevant information to the client consuming the PageAPI.
Now a list of Contentlets within a Container is going to be returned, including the Style Properties. Here is a comparison of the responses:
| Current | Suggested |
|---|---|
👀 Note: This is a suggestion, if needed the response information could vary depending on the need.
Acceptance Criteria
- [ ] Postman tests are updated to validate the schema of the new JSON response (checking for the presence of new fields).
- [ ] Verify that the returned data matches the data that was sent (e.g., the UUIDs in the response match the UUIDs in the request).
- [ ] Basic "save" functionality works identical to before; no side effects or latency spikes observed.
Priority
Low
Additional Context
To have a request example and additional context about how are style properties being saved see #33695
QA NOTES:
Despite in previous talks we thought about include the items field in the response we decided to keep everything inside the entity field and remove the "ok", as its shown in the image below.
The reason of this decision is to keep consistency in our endpoints. -"By sending items outside of the entity, we open the door to more inconsistency and disorder". That was the conclusion from BE discussions.
Passed QA
Tested in main 1350a2e
Also tested in this other ticket: https://github.com/dotCMS/core/issues/33695
https://github.com/user-attachments/assets/d58f5203-dc8f-4088-842e-9edb3b3b81dc