Genbase
ApiModule

Get module graph

GET
/module/graph

Authorization

AuthorizationRequiredBearer <token>

JWT Token for authenticated users (obtained via /auth/jwt/login).

In: header

curl -X GET "http://localhost:8000/module/graph" \
  -H "Authorization: Bearer <token>"

Successful Response

{
  "nodes": [
    {
      "module_id": "string",
      "module_name": "string",
      "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",
      "kit_id": "string",
      "owner": "string",
      "version": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "env_vars": {
        "property1": "string",
        "property2": "string"
      },
      "repo_name": "string",
      "path": "string"
    }
  ],
  "edges": [
    {
      "source": "string",
      "target": "string",
      "type": "string",
      "created_at": "2019-08-24T14:15:22Z",
      "description": "string"
    }
  ]
}