@W-20242139 OpenAPI Tags-Based Endpoint Grouping Support#53
Merged
@W-20242139 OpenAPI Tags-Based Endpoint Grouping Support#53
Conversation
- Introduced a new OpenAPI definition for the Flights API in `tags-flights.yml`. - Updated `apis.json` to include the new Flights API. - Modified `index.js` to display the Flights API in the API list. - Added new styles for endpoint descriptions in `Styles.js` to enhance visual representation.
…ptive names and paths - Updated the rendering logic to show endpoint names and descriptions more clearly. - Introduced new methods to compute endpoint names based on operations and tags. - Adjusted the test cases to reflect changes in the endpoint rendering structure.
- Introduced a new test suite to validate the rendering of endpoints grouped by tags. - Added assertions to check the correct display of endpoint names, descriptions, paths, and operations. - Ensured that both full and compact AMF models are covered in the tests.
leandrogilcarrano
approved these changes
Dec 16, 2025
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.
OpenAPI Tags-Based Endpoint Grouping Support
Bug Report
Work ID: W-20242139
Issue Description:
The "tags" property defined at the operation level in OpenAPI specifications was not being rendered in the API Console. Users utilize the tags property to logically group related operations, which displays properly in Swagger Editor but was completely absent in API Console Builder (ACB). This created a usability gap where API consumers could not see the intended logical organization of operations.
Solution Overview
This update adds full support for rendering and grouping API endpoints by their OpenAPI tags in the API summary component. When operations share common tags, they are now displayed together with the tag name and description prominently shown, matching the expected behavior from tools like Swagger Editor.
Core Functionality
New Helper Methods
_computeEndpointName(endpoint, webApi, ops)Determines the display name for an endpoint following a priority hierarchy. Returns an object with name and description properties, or undefined to fallback to the path.
_getEndpointTagInfo(endpoint, webApi)Extracts tag information from endpoint operations. When multiple operations share tags, it identifies the most common tag and retrieves its description from the API definition. This enables meaningful grouping of related operations.
_getEndpointOperationName(endpoint)Uses the operation summary as the endpoint name, but only when the endpoint has exactly one operation. This prevents inappropriate use of single operation summaries for multi-operation endpoints.
Name Resolution Priority
The component follows a clear hierarchy when determining endpoint display names:
Template Updates
Endpoint with Name
When an endpoint has a resolved name (including from tags), the component displays:
Endpoint without Name
When no name is resolved, the component displays only the endpoint path as before, maintaining backward compatibility.

Styling
.endpoint-name-descriptionContainer for the name and description block with controlled spacing and font size. Customizable via CSS custom properties.
.endpoint-nameBold text for the endpoint name with themeable color properties for consistency with the design system.
.endpoint-descriptionItalic text for the tag description with subdued coloring to differentiate from the primary name.
Testing
Updated Existing Tests
Modified existing endpoint rendering tests to match the new HTML structure where endpoints display names separately from paths.
New Test Suite: Tags-based Endpoint Grouping
Comprehensive test coverage for the tags-flights demo spec, validating:
Tests run in both Full AMF model and Compact AMF model modes to ensure compatibility with both formats.
Demo Integration
Added a new demo API specification
tags-flights.ymlshowcasing the tag grouping feature with a flights API example. The demo includes two tag groups (AllFlights, OneFlight) with multiple operations demonstrating realistic usage patterns similar to what users would create in their own OpenAPI specifications.Backward Compatibility
Endpoints without tags or explicit names continue to display using their paths as before. The changes are additive and non-breaking for existing API specifications.
Impact
This enhancement resolves the usability gap between API Console and other OpenAPI tools, allowing API designers to leverage tags for logical operation grouping as intended by the OpenAPI specification. Users can now see their APIs organized the same way across different tools, improving the overall developer experience.