dotCMS / core

Headless/Hybrid Content Management System for Enterprises
http://dotcms.com
Other
864 stars 466 forks source link

[Multi-language] : Create endpoints to feed the Multi-language Component for the Edit Contentlet sidebar #30591

Closed jcastro-dotcms closed 7 hours ago

jcastro-dotcms commented 1 week ago

Parent Issue

User Story

As a dotCMS User, I want to view locale-related information of the Contentlet that I'm creating or editing.

Acceptance Criteria

Expose the required data via REST:

Proposed Objective

Core Features

Proposed Priority

Priority 2 - Important

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

https://dotcms.slack.com/archives/C058GCQ7T39/p1730827058966279

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

github-actions[bot] commented 6 days ago

PRs:

oidacra commented 2 days ago

Endpoint to get the langs /api/v1/content//{identifier}/languages Endpoint to get the default language: /api/v2/languages/_getdefault

hmoreras commented 2 days ago

Pass internal QA:

Languages of specific content: http://localhost:8080/api/v1/content/a41e5207ac4f373fccd68325603ec526/languages

image

Default language: http://localhost:8080/api/v2/languages/_getdefault

image
josemejias11 commented 1 day ago

Approved: Tested on trunk_786c18d, Docker, macOS 14.5, FF v126.0.1