Skip to main content

Visualize an export

Route/ade/dashboard/export/studio

A generated file is easiest to check as text when it is small. For anything larger, or a format judged by its structure, the 6. Review & Generate step of the Export studio also draws it: what became of each part of your API, where the export loses fidelity, and the shape of the file itself, as tables, files, services or channels.

The fidelity overlay on a Protocol Buffers export of the Petstore: every field marked with its findings, and the findings for Pet.id below the graphThe fidelity overlay on a Protocol Buffers export of the Petstore: every field marked with its findings, and the findings for Pet.id below the graph
Route/ade/dashboard/export/studio

When to visualize​

  • Before you ship a lossy export. The fidelity report lists every finding; the graph and the treemap show which types, fields and operations they fall on, worst first.
  • When a reviewer reads diagrams, not text. A database team reads tables and keys, an RPC team reads services and messages, an event team reads channels.
  • To see what the export made up. Generated keys, junction tables, field numbers and other invented parts are marked in every picture.

At a glance​

You want to see…WhereFormatsDetails
Which part of your API became which part of the file, and which did not surviveWhat became of each entity in target (the mapping graph)AllExport studio › Review & Generate
Where the export loses fidelity: DROP, APPROX, SYNTH and OK on each entity, filtered by kindFidelity overlay on the mapping graphAllSee where the export loses fidelity
The same findings, compact, for a large APITreemapAllSee where the export loses fidelity
The worst losses firstWhat … loses, worst firstAllUnderstand export fidelity
Tables, columns, keys and foreign keysERD, above the fileSQL DDL, DBML, Prisma, Liquibase, FlywayRead a database export as an ERD
A bundle's files and their importsImport graph, above the filesProtocol Buffers, Connect RPCSee an export as a picture
Services, their methods and the messages they take and returnService mapProtocol Buffers, Connect RPCSee an export as a picture
Operations, channels and messages, or message groups and event typesChannel topologyAsyncAPI, xRegistrySee an export as a picture
The service map of the Petstore exported to Protocol Buffers: the default service, its methods, and the messages they take and returnThe service map of the Petstore exported to Protocol Buffers: the default service, its methods, and the messages they take and return
Route/ade/dashboard/export/studio

How the pieces fit​

  • One selection everywhere. Selecting a node in any picture, a cell of the treemap or a row of the entity tree selects the same part of your API: the tree, the graph and the file follow, and going back to the text scrolls to its line.
  • The fidelity counts are the report's. The overlay's chips print the fidelity report's own counts, and the line under them says when a finding sits on something the graph does not draw.
  • Pictures are drawn from the file. The ERD, the import graph, the service map and the channel topology come from the file Apiome wrote, so they show what the export holds, not what the source had.
  • The format decides the pictures. Each export format declares which pictures it has; a format with none shows no switch. The picture you pick is kept for that format until you close the browser tab.
  • Made-up parts are marked, not hidden. What the export invented carries ✚ (and ✚ SYNTH on a table), the same mark the fidelity report uses.
An order model exported to PostgreSQL as an ERD, with its made-up junction and child tables marked SYNTH and dashed foreign keysAn order model exported to PostgreSQL as an ERD, with its made-up junction and child tables marked SYNTH and dashed foreign keys
Route/ade/dashboard/export/studio

With the API​

WhatEndpoint
Which pictures each format hasGET /v1/export/{tenant}/targets (viz_modes)
The entities, their fidelity, the tables (relational) and each picture's graph (views)POST /v1/export/{tenant}/preview-manifest
The fidelity report the overlay paintsPOST /v1/export/{tenant}/preview

Where next​