Overview
Thedevgraph-api block defines API routes for a service. Routes attach to a parent service defined by devgraph-service.
In the hybrid build, API blocks enrich the authoritative service layer inside graph.json. They do not replace the repo scan or file-level graph.
Syntax
Fields
| Field | Required | Description |
|---|---|---|
service | Yes | Name of the parent service |
routes | Yes | Object mapping routes to descriptions |
Route Format
Routes are defined asMETHOD /path: description:
Supported Methods
GETPOSTPUTPATCHDELETE
Path Parameters
Use:param syntax for path parameters:
Examples
REST API
Multiple API blocks
You can split routes across multiple blocks:Generated Output
API routes appear in:graph.jsontop-levelapisgraph.jsontop-levelservicesunder the matching servicesummary.mdin the routes sectionagents/{service}.mdand generated skills