Add Anypoint CLI Analytics API (W-23536804) - #204
Open
shanu-nitt wants to merge 1 commit into
Open
Conversation
Publish the Anypoint CLI backend analytics API to the MuleSoft Developer Hub as OpenAPI 3.0. Exposes the CLI command/error telemetry endpoints and the shared /analytics/pdp-event endpoint used by CLI plugin teams to send PDP_ProductUsage events to Monitoring Cloud via Funnel. Converted from the service's assets/oas/v1.yaml and aligned to Developer Hub governance (title, semver, camelCase operationIds, descriptions, response examples). Validated with make validate-api, validate-xorigin, and generate-portal (0 violations, 0 warnings). Co-authored-by: Cursor <cursoragent@cursor.com>
spezzirriemiliano
approved these changes
Aug 6, 2026
spezzirriemiliano
left a comment
Contributor
There was a problem hiding this comment.
New API spec (anypoint-cli-analytics) passes all governance validators with zero violations/warnings, examples correctly match their declared regex patterns, and the spec content matches the PR description exactly.
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.
What
Adds the Anypoint CLI Analytics API to the Developer Hub as OpenAPI 3.0 under
apis/anypoint-cli-analytics/.This is the public API of the
anypoint-cli-backendservice (https://anypoint.mulesoft.com/cli/api/v1). It exposes:POST /analytics/event—trackCliEvent: Anypoint CLI command-usage telemetry (fire-and-forget, 204).POST /analytics/error—trackCliError: Anypoint CLI command-error telemetry (fire-and-forget, 204).POST /analytics/pdp-event—publishPdpEvents: shared endpoint for any MuleSoft CLI plugin team to send a batch ofPDP_ProductUsageevents to Monitoring Cloud's Product Data Platform (PDP) via Funnel, with per-item partial acceptance (202 / 207 / 400).Why
Publishes the CLI backend's analytics/telemetry API to the MuleSoft Developer Hub so plugin teams and AI agents can discover and consume the shared PDP ingestion endpoint. Work item: W-23536804.
How
assets/oas/v1.yaml+schemas/*.yaml) to a single governedapi.yaml.version, camelCaseoperationIds, per-operation summaries/descriptions, request-body descriptions, and response examples on every operation. Schemas carry field-level descriptions.x-originannotations are required.Validation
Ran locally against the repo toolchain — all green:
make validate-api API=apis/anypoint-cli-analytics→ 0 violations, 0 warnings (basic OAS + governance).make validate-xorigin→ no violations.make generate-portal→ registry entryurn:api:anypoint-cli-analyticsgenerated successfully.Files
apis/anypoint-cli-analytics/api.yamlapis/anypoint-cli-analytics/exchange.json