Skip to content

Comments

@W-21176653 Hide "Try It" button for gRPC operations#63

Merged
alexpmule merged 3 commits intomainfrom
feat/hide-try-it-for-grpc-operations
Feb 4, 2026
Merged

@W-21176653 Hide "Try It" button for gRPC operations#63
alexpmule merged 3 commits intomainfrom
feat/hide-try-it-for-grpc-operations

Conversation

@alexpmule
Copy link
Contributor

Problem:
The "Try It" button is currently displayed for gRPC operations, but gRPC APIs cannot be tested through the standard HTTP request panel since they require different protocols and tooling.

Expected Behavior:
The "Try It" button should be automatically hidden when viewing gRPC operations.

Proposed Solution:
Use the AmfHelperMixin's _isGrpcOperation() method to detect gRPC operations and automatically set noTryIt to true for those cases, while still respecting any explicit noTryIt configuration.

Acceptance Criteria:

  • Try It button is not shown for gRPC operations
  • Explicit noTryIt property is still respected
  • REST/RAML APIs continue to work normally
  • Tests verify the behavior for gRPC operations

…ffectiveNoTryIt logic. The effectiveNoTryIt getter now hides the "Try It" button for gRPC operations and respects the noTryIt property. Added gRPC-specific helper functions in AmfLoader and corresponding tests to validate behavior.
@alexpmule alexpmule self-assigned this Feb 4, 2026
@alexpmule alexpmule changed the title @W-21176653 Implement gRPC support in ApiDocumentationElement and add tests for e… @W-21176653 Hide "Try It" button for gRPC operations Feb 4, 2026
- Introduced grpc-test.json and grpc-test-compact.json to the demo directory for gRPC support.
- Updated .gitignore to include the new test files while excluding other JSON files in the demo directory.
@alexpmule alexpmule merged commit f18cacf into main Feb 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants