Skip to content

supermodeltools/openapi-spec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Supermodel OpenAPI Specification

npm OpenAPI Validate OpenAPI

OpenAPI 3.0 specification for the Supermodel API - code graphing and static analysis.

Install

npm install @supermodeltools/openapi-spec

The spec is available at node_modules/@supermodeltools/openapi-spec/openapi.yaml.

Endpoints

Method Path Description
POST /v1/graphs/dependency File-level dependency graph
POST /v1/graphs/call Function-level call graph
POST /v1/graphs/domain Domain model classification
POST /v1/graphs/parse AST parse tree relationships
POST /v1/graphs/supermodel Full Supermodel IR bundle

All endpoints accept a zipped repository snapshot and return graph data as JSON.

Authentication

Requests require an API key via X-Api-Key header. Get your key from the Supermodel Dashboard.

Links