@supermodeltools/openapi-spec 0.3.8 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -1
- package/openapi.yaml +1 -1
- package/package.json +15 -1
package/README.md
CHANGED
|
@@ -1,2 +1,36 @@
|
|
|
1
1
|
# Supermodel OpenAPI Specification
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@supermodeltools/openapi-spec)
|
|
4
|
+
[](https://spec.openapis.org/oas/v3.0.0)
|
|
5
|
+
[](https://github.com/supermodeltools/openapi-spec/actions/workflows/validate.yml)
|
|
6
|
+
|
|
7
|
+
OpenAPI 3.0 specification for the [Supermodel API](https://docs.supermodeltools.com) - code graphing and static analysis.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @supermodeltools/openapi-spec
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
The spec is available at `node_modules/@supermodeltools/openapi-spec/openapi.yaml`.
|
|
16
|
+
|
|
17
|
+
## Endpoints
|
|
18
|
+
|
|
19
|
+
| Method | Path | Description |
|
|
20
|
+
|--------|------|-------------|
|
|
21
|
+
| POST | `/v1/graphs/dependency` | File-level dependency graph |
|
|
22
|
+
| POST | `/v1/graphs/call` | Function-level call graph |
|
|
23
|
+
| POST | `/v1/graphs/domain` | Domain model classification |
|
|
24
|
+
| POST | `/v1/graphs/parse` | AST parse tree relationships |
|
|
25
|
+
| POST | `/v1/graphs/supermodel` | Full Supermodel IR bundle |
|
|
26
|
+
|
|
27
|
+
All endpoints accept a zipped repository snapshot and return graph data as JSON.
|
|
28
|
+
|
|
29
|
+
## Authentication
|
|
30
|
+
|
|
31
|
+
Requests require an API key via `X-Api-Key` header. Get your key from the [Supermodel Dashboard](https://dashboard.supermodeltools.com).
|
|
32
|
+
|
|
33
|
+
## Links
|
|
34
|
+
|
|
35
|
+
- [API Documentation](https://docs.supermodeltools.com)
|
|
36
|
+
- [API Terms of Service](https://supermodeltools.com/legal/api-terms)
|
package/openapi.yaml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supermodeltools/openapi-spec",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Supermodel Public OpenAPI Specification",
|
|
5
5
|
"main": "openapi.yaml",
|
|
6
6
|
"files": [
|
|
@@ -10,6 +10,20 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/supermodeltools/openapi-spec.git"
|
|
12
12
|
},
|
|
13
|
+
"homepage": "https://docs.supermodeltools.com",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/supermodeltools/openapi-spec/issues"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"openapi",
|
|
19
|
+
"api",
|
|
20
|
+
"code-graph",
|
|
21
|
+
"dependency-graph",
|
|
22
|
+
"call-graph",
|
|
23
|
+
"static-analysis",
|
|
24
|
+
"code-analysis",
|
|
25
|
+
"supermodel"
|
|
26
|
+
],
|
|
13
27
|
"author": "Supermodel <abe@supermodel.software>",
|
|
14
28
|
"license": "UNLICENSED"
|
|
15
29
|
}
|