Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/api/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (c *Client) Analyze(ctx context.Context, zipPath, idempotencyKey string) (*
mw.Close()

var g Graph
if err := c.request(ctx, http.MethodPost, "/v1/supermodel", mw.FormDataContentType(), &buf, idempotencyKey, &g); err != nil {
if err := c.request(ctx, http.MethodPost, "/v1/graphs/supermodel", mw.FormDataContentType(), &buf, idempotencyKey, &g); err != nil {
return nil, err
}
return &g, nil
Expand Down
2 changes: 1 addition & 1 deletion internal/api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type Relationship struct {
Properties map[string]any `json:"properties,omitempty"`
}

// Graph is the unified response type for /v1/supermodel and
// Graph is the unified response type for /v1/graphs/supermodel and
// /v1/repos/{id}/graph/display. The API serialises relationships as either
// "edges" or "relationships" depending on the endpoint; Rels() unifies both.
type Graph struct {
Expand Down
4 changes: 2 additions & 2 deletions scripts/check-architecture/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ var sharedKernel = map[string]bool{
}

// --- Supermodel API response types -------------------------------------------
// Schema: DisplayGraphResponse from api.supermodeltools.com/v1/supermodel
// Schema: DisplayGraphResponse from api.supermodeltools.com/v1/graphs/supermodel

type graphResponse struct {
Nodes []graphNode `json:"nodes"`
Expand Down Expand Up @@ -235,7 +235,7 @@ func callAPI(apiBase, apiKey, zipPath string) (*graphResponse, error) {
}
mw.Close()

req, err := http.NewRequest(http.MethodPost, apiBase+"/v1/supermodel", &buf)
req, err := http.NewRequest(http.MethodPost, apiBase+"/v1/graphs/supermodel", &buf)
if err != nil {
return nil, err
}
Expand Down
Loading