Endpoints and contracts
Every call an application offers is an endpoint: a REST path, a gRPC method, a GraphQL query, a published event or a type of your own. Messages in flows link to endpoints, so "which flows use this endpoint?" always has an answer.

Endpoints page
The Endpoints page (top menu › System) lists every application's endpoints, grouped. Endpoints are added and edited only here:
- Search works word by word: each word must appear in the path, name, description, the application's path or a tag ("service payment post").
- Filters: status (all, with contract, no contract, deprecated, missing from source), type (REST, gRPC, GraphQL, event… each with its count), tag and use in flows (used / unused). The Method filter appears once a type is chosen and lists that type's methods (GET/POST… for REST, query/mutation for GraphQL). The list shows "n of total"; Clear filters resets them all.
- Filter by application: pick an application in the searchable picker; picking a system brings the endpoints of all services inside it. The filter stays in the address and can be shared.
- Application groups collapse and expand from their headers, one by one or all at once.
- New endpoint: add one by hand by choosing the application, type, method and name. Useful when designing a new API before its document exists.
- Clicking an endpoint opens details similar to a Swagger preview; Edit changes the endpoint and its contract, and you can jump to the flows that use it.
Coming from the catalog
A catalog item's page shows a summary of that application's endpoints: the list, usage and contract counts. Clicking a row opens the endpoint on this page. Open in Endpoints, Add endpoint, Find in flows and Import API document open this page filtered to that application with it preselected; the filter shows above the list and × removes it.
Contract
A contract keeps a summary of the endpoint; the raw OpenAPI document is not stored:
- Summary, operation id, tags.
- Security (e.g. bearer, API key, mTLS).
- Parameters (path, query, header) and body fields.
- Response codes and descriptions (e.g. 201, 402, 409).
- The deprecated flag.
A contract can be written by hand with Edit on its details page.
Contract history on the details page lists the contract's versions: a new one is created on every Save that changes its content — by hand, by an OpenAPI import or by an import from code (marked Automatic). Picking a version shows what changed since the previous one, field by field (description, parameters, body fields, responses…); Restore this version writes that content back as an edit, and the next Save makes it a new version. Like flow versions, the newest 50 automatic versions are kept and they are part of backups (Version history).
Importing an API document
Use Import API document on the Endpoints page (or the link with the same name on a catalog item):
- Choose the document as a file, or paste its text:
- Swagger 2.0 / OpenAPI 3 (JSON or YAML): each path and method becomes a REST endpoint.
- AsyncAPI 2 / 3 (JSON or YAML): each channel operation becomes an event endpoint named after the channel, with the method publish or subscribe (AsyncAPI 3 send / receive). The message payload fills the body fields, message headers become header parameters, channel parameters become path parameters.
- gRPC .proto: each
rpcbecomes a gRPC endpoint namedService.Method. The request message's fields fill the body; streaming and the response message are noted in the description. Imported files (import) are not read — paste them together if you need their messages.
- Each operation is added to that application with its contract filled in. Event and gRPC contracts have no response codes.
- Importing the same document again adds new operations and updates changed contracts. Endpoints removed from the document are not deleted; they are marked Missing from source.
Importing again overwrites contract changes made by hand.
Fetch from URL reads https addresses directly from your browser, so internal servers you can reach (e.g. over VPN) work too. The server must allow reading from the browser (CORS); if it doesn't, download the document and choose it as a file, or paste the text.
Exporting OpenAPI
Download OpenAPI on a catalog item's page (under its endpoint list) downloads that application's REST endpoints and their contracts as one OpenAPI 3.1 document (JSON), for example to share an API you designed in sysgraph or to load it into another tool. Viewers can download it too.
- Each REST endpoint becomes a path and method; summary, parameters, request body fields, responses, security, tags and "deprecated" come from the contract. An endpoint without a contract is written with its path, method and description only.
- sysgraph keeps the top-level fields of a request body, not nested schemas: a field whose type is a named model (such as
Card) refers to an empty schema with that name undercomponents. - Endpoints of other types (gRPC, event…), REST endpoints whose name is not a path and a second endpoint with the same method and path are left out; the message after the download says how many.
- Importing the downloaded document again gives the same endpoints and contracts.
Importing from code
Instead of entering endpoints and flows by hand, you can extract them from your code. The sysgraph-scan tool does this: it runs in your repository or in CI, so your code and access keys never reach sysgraph. It scans .NET (C#) and Java repositories, also both in one repository. The tool comes as a package (sysgraph-scan.zip) and needs the .NET 10 runtime; Java code is read directly, without a build, a JDK or Maven / Gradle.
dotnet sysgraph-scan/sysgraph-scan.dll path/to/repo -o sysgraph-scan.jsonThe tool finds every entry point: HTTP endpoints (controllers and Minimal APIs), queue / event consumers, gRPC services and background jobs. For each one it follows the call chain and writes the HTTP calls to other applications, the published messages and database calls (EF Core, Dapper, ADO.NET, MongoDB; in EF Core one database participant named after the DbContext) into a flow. Calls inside a loop are in a loop block; if / else and switch arms are alt / else blocks (opt when only one arm has calls), labelled with the condition from the code, string literals hidden. Synchronous calls get response arrows labelled with the return type; in HTTP endpoints, responses such as return NotFound() appear with their status code inside their branch and are added to the endpoint contract on import. Declared responses are added too: [ProducesResponseType] on the action or controller, .Produces… after MapGet(…) and TypedResults return types such as Results<Ok<Order>, NotFound>. When the code doesn't show a response's status and exactly one success code is declared, the arrow uses that code. When importing, databases are listed as targets too; created as new items, they get the Database role. Flows are application-level by default; --detail component also shows the application's classes.
Java
Modules come from pom.xml (artifactId, dependencies on sibling modules) and build.gradle / build.gradle.kts (project name, project(':…')); a module is an application when it has a main method, @SpringBootApplication or the Spring Boot / Quarkus / Micronaut / application plugin. Sources are read from src/main/java; test sources are skipped. Values in application.properties / application.yml fill ${…} placeholders, so a URL in @Value("${payments.url}") gives the called service's host name.
- Entry points: Spring MVC / WebFlux controllers (
@RestController,@Controller,@RequestMappingon the class and@GetMapping… on the method, also when the mapping is on the interface the controller implements), WebFlux router functions, JAX-RS (@Path,@GET…), Micronaut controllers;@KafkaListener,@RabbitListener,@JmsListener,@SqsListener(named after the topic or queue); gRPC services (…Grpc.…ImplBase);@Scheduled, Quartz and Spring Batch jobs.@RequestMappingwithout a method counts as GET. - Call chain: calls through an interface follow its implementations (service interface →
@Serviceclass);publishEventfollows the@EventListenermethods, Axon gateways their handlers. - Calls to other applications:
RestTemplate,WebClientandRestClient(the address fromuri(…),baseUrl(…)or the field), Feign clients (@FeignClient(name = …)), Spring HTTP interfaces (@HttpExchange), MicroProfile REST clients,java.net.http, OkHttp, gRPC stubs; messages throughKafkaTemplate,RabbitTemplate,JmsTemplate,StreamBridge, SQS / SNS (named after the topic, constants resolved). - Database: Spring Data repositories (JPA, JDBC, R2DBC, MongoDB, Elasticsearch, Cassandra, Neo4j; the operation names the entity, e.g.
findAll Order),EntityManager, HibernateSession,JdbcTemplate/JdbcClient, JDBC,MongoTemplate, MyBatis mappers, jOOQ. - Responses:
ResponseEntity.ok(…),.status(HttpStatus.CREATED).body(…),.notFound().build(),Optional.map(ResponseEntity::ok).orElse(…),@ResponseStatuson the method; exceptions with@ResponseStatus,ResponseStatusExceptionand@ExceptionHandlermappings, also when thrown deeper in the chain; OpenAPI@ApiResponse. - Findings: the same rules as for C#; blocking on reactive or asynchronous code means
block()onMono/Fluxandjoin()/get()onCompletableFuture.
Settings and shared rules use the same file: type names are the Java ones (e.g. "type": "com.acme.bus.Bus", "attribute": "com.acme.web.Endpoint" for an annotation). --lang java (or dotnet) limits the scan to one language.
Then use Import from code on the Endpoints page:
- Choose or paste the
sysgraph-scan.jsonfile. - Each application and called service in the scan is matched to a catalog item. If one of the item's code names equals the name in code, it is selected automatically; a single item with a similar name is offered as a suggestion. You can choose another item, create a new one or skip it. The chosen items learn these names, so later scans match on their own.
- Import: entry points become the application's endpoints (the contract gets the handler method and path parameters). Flows are written into the "
(code)" folder, in one subfolder per application; participants are linked to items and messages to endpoints.
Importing the same repository again leaves unchanged flows alone. Endpoints removed from the code are not deleted; they are marked Missing from source. Contracts imported from Swagger are left untouched.
Generated data and manual changes
Flows and endpoints that come from code show a Generated badge in the lists. If one was changed by hand after the import, the badge reads Generated · edited; its tooltip shows the source (commit, date). When you open a generated flow, the bar above the editor offers History and Detach from code.
Flows: A flow you haven't edited updates automatically when the code changes. A flow you edited by hand is kept, and the import asks you at the end:
- Keep mine: your version stays and you won't be asked again.
- Take from code: the code's version is written; yours stays in the version history.
- Merge…: your changes and the code's changes are combined. Where both touch the same lines, pick Mine, From code or Both.
Adding steps or changing their text or order counts as editing. What the app does on its own doesn't count: activations, endpoint links, names synced from the catalog.
Contracts: The fields that come from code update on every import: handler, path parameters and response codes. What you enter is kept: summary, request body, security, tags, other parameters, response descriptions and responses you added.
Deleting and detaching: Endpoints and flows you delete or Detach from code are not added again by later imports. You can bring them back with Restore in the Ignored list of the import dialog.
Planned endpoints: If a project plans an endpoint as new or changed and the code now has an entry point that looks like it (same method, the path differs only in
/api,/v1, parameter names or letter case), the import lists it under Planned endpoints and offers to link them. Linked, they become one record: the endpoint keeps its id, scope rows and links in flows, takes its path from code and keeps the contract fields you wrote. Create a separate endpoint adds a new one instead.Planned items: An application (or a called service) that has no code name yet is suggested to a catalog item planned as new or changed in an open project when the names are similar, before other similar items. The selected item learns the code names, so later imports match by itself.
No longer in code: A generated flow whose entry point is gone from the code is not deleted. Its badge reads Generated · not in code until the entry point comes back. Endpoints no longer in code are marked the same way.
In cloud workspaces with Radar, main branch scans are imported automatically with the same rules.
The version history of a flow shows the kind of each change: Automatic (generated or updated from code), Manual edit and Merged. You can filter the list by kind.
Change impact and pull request comments
With --base origin/main the tool compares the branch's own changes (since the merge base) method by method and records the impact on each entry point: direct when its handler changed, new when it was added, indirect when a method in its call chain changed. Layout and comment changes don't count.
When you import such a file, Impact of the change comes first: for each affected entry point its endpoint in sysgraph, the flows that use it, the open projects that have it in scope and the other workspaces in your organization that call it. Changed files no entry point reaches (settings, SQL…) are listed separately. Copy as Markdown gives you the report to paste into the pull request description.
Under the report, Link this change to a project attaches the change to an open project. When the branch name contains the project's number (PRJ-003) or one of its issue keys (PAY-12), that project is selected for you. The project page then compares the change with the scope (Changes in code).
In CI, --pr-comment makes the tool keep one comment on the pull request and update it on each push (GitHub Actions, GitLab CI, Azure Pipelines; with the CI's token). If commenting fails, the build doesn't stop.
Once you scan and import the repositories of both applications, the calls between them are linked to the other side's endpoints, and the architecture and organization map show these links.
For flows imported before this feature, it's not known whether they were edited by hand. If such a flow changes in code, you are asked once.
With a sysgraph-scan.config.json file in the repository you can name applications and correct target names (e.g. payments.internal → payments-api). Your team's own solutions are described with rules:
- Custom entry points: your own job scheduler, Kafka listener or router; matched by base type, attribute and method name, named from a template (e.g.
{classAttr.prefix}/{attr.path}). - Dependency mapping: classes your code calls indirectly, such as MediatR-like dispatchers or a service locator (
Locator.Resolve<IOrderService>(),GetService(typeof(…)),Get("OrderService")). The tool finds the target and continues the chain. - Outbound calls: your company's own message bus or HTTP client.
Keep company-wide rules in one file and pass it with --rules shared-rules.json; the repository's settings take precedence.
Linking a message to an endpoint
While you type a message, if the target participant is linked to the catalog, that application's endpoints are suggested. Picking one links the message and starts its text with the endpoint label (e.g. POST /orders). The endpoint chip on the message takes you to the endpoint page. If you type a new endpoint name in a flow, one click adds it to the catalog.
To link messages in existing flows in bulk, use Find in flows on the Endpoints page (choose the application, or come from the link on a catalog item): unlinked messages going to that application are scanned, those that can link to existing endpoints and new endpoint candidates are listed, and the ones you pick are added and linked.
Checks
Endpoint links and contracts are part of the diagram check: deleted endpoints, wrong targets, deprecated endpoints, endpoints missing from the source and declared error responses with no error branch in the flow. See Diagram check.
Endpoint types
Besides REST, gRPC, GraphQL and events you can define your own types (e.g. "SOAP", "Batch") in System › Endpoint types in the top menu (owner only).