Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure Navigation API Support siteId Parameter #31303

Open
6 tasks
fmontes opened this issue Feb 4, 2025 · 0 comments
Open
6 tasks

Ensure Navigation API Support siteId Parameter #31303

fmontes opened this issue Feb 4, 2025 · 0 comments

Comments

@fmontes
Copy link
Member

fmontes commented Feb 4, 2025

Problem Statement

The Navigation API currently does not support specifying the site using a sideId, leading to inefficiencies in navigation retrieval for multi-tenant CMS setups with multiple sites. Developers have implemented workarounds, but adding direct support for site IDs would improve performance, reduce complexity, and enhance usability.

https://www2.dotcms.com/docs/latest/navigation-rest-api

Objectives

  • Implement support for passing a siteId in the Navigation API to allow site-specific navigation retrieval.
  • Ensure backward compatibility with existing API implementations.
  • Update the API documentation to include the new siteId functionality.
  • Provide robust error handling for invalid or missing siteIds.

User Story

As a website developer managing multiple sites within a multi-tenant CMS, I want the Navigation API to support site-specific navigation queries using a siteId, so that I can retrieve navigation data accurately and efficiently for each site.

Acceptance Criteria

Preview Give feedback

External Links

[Placeholder for external links to Slack conversations, support tickets, Figma designs, etc.]

Assumptions & Initiation Needs

  • Assumes access to a test environment for validating the feature.
  • Assumes developers have access to the site ID list and relevant configurations.
  • Assumes the Navigation API infrastructure can be extended to support additional parameters without significant architectural changes.

Quality Assurance Notes & Workarounds

[Placeholder for QA notes, test cases, and temporary workarounds if applicable.]

Technical Details

  • Ensure compatibility with existing API versioning.
  • Potential need for schema updates or parameter validation logic to handle site IDs correctly.
  • Performance benchmarks to ensure minimal overhead when site IDs are added as parameters.

Potential Challenges

  • Ensuring minimal impact on existing clients using the Navigation API.
  • Identifying edge cases, such as when a siteId does not match any available site.

Impact on Existing Features

  • The addition of the siteId parameter should not disrupt current API functionality or cause regressions in existing workflows.
@fmontes fmontes changed the title 🐛 Ensure Navigation API Respects Site ID Parameter Ensure Navigation API Support siteId Parameter Feb 4, 2025
@fmontes fmontes moved this from New to Next 1-3 Sprints in dotCMS - Product Planning Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Next 1-3 Sprints
Development

No branches or pull requests

1 participant