{
  "openapi": "3.0.0",
  "info": {
    "title": "EVERSE Unified API",
    "description": "Unified API for EVERSE research software quality services",
    "version": "v1",
    "contact": {
      "name": "EVERSE Team"
    },
    "license": {
      "name": "Apache 2.0"
    }
  },
  "servers": [
    {
      "url": "https://vuillaut.github.io/evapi",
      "description": "EVERSE Unified API"
    }
  ],
  "paths": {
    "/": {
      "get": {
        "operationId": "getApiRoot",
        "summary": "API Root",
        "description": "Get the API root with links to all endpoints",
        "tags": [
          "Root"
        ],
        "responses": {
          "200": {
            "description": "API root information",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "@context": {
                      "type": "string"
                    },
                    "@type": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "endpoints": {
                      "type": "object"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/indicators": {
      "get": {
        "operationId": "listIndicators",
        "summary": "List Indicators",
        "description": "Get paginated list of all quality indicators",
        "tags": [
          "Indicators"
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number (default: 1)",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "description": "Items per page (default: 50, max: 100)",
            "schema": {
              "type": "integer",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Indicators collection"
          }
        }
      }
    },
    "/indicators/{id}": {
      "get": {
        "operationId": "getIndicator",
        "summary": "Get Indicator",
        "description": "Get a specific indicator by ID",
        "tags": [
          "Indicators"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Indicator ID",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Indicator details"
          },
          "404": {
            "description": "Indicator not found"
          }
        }
      }
    },
    "/tools": {
      "get": {
        "operationId": "listTools",
        "summary": "List Tools",
        "description": "Get paginated list of all quality assessment tools",
        "tags": [
          "Tools"
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number (default: 1)",
            "schema": {
              "type": "integer",
              "default": 1
            }
          },
          {
            "name": "indicator",
            "in": "query",
            "description": "Filter by indicator ID",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ring",
            "in": "query",
            "description": "Filter by ring (adopt, trial, assess, hold)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tools collection"
          }
        }
      }
    },
    "/tools/{id}": {
      "get": {
        "operationId": "getTool",
        "summary": "Get Tool",
        "description": "Get a specific tool by ID",
        "tags": [
          "Tools"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Tool ID",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tool details"
          },
          "404": {
            "description": "Tool not found"
          }
        }
      }
    },
    "/tools/by-indicator/{indicator_id}": {
      "get": {
        "operationId": "getToolsByIndicator",
        "summary": "Get Tools by Indicator",
        "description": "Get all tools that measure a specific indicator",
        "tags": [
          "Tools"
        ],
        "parameters": [
          {
            "name": "indicator_id",
            "in": "path",
            "required": true,
            "description": "Indicator ID",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tools for indicator"
          },
          "404": {
            "description": "Indicator not found"
          }
        }
      }
    },
    "/tools/by-ring/{ring}": {
      "get": {
        "operationId": "getToolsByRing",
        "summary": "Get Tools by Ring",
        "description": "Get all tools in a specific ring",
        "tags": [
          "Tools"
        ],
        "parameters": [
          {
            "name": "ring",
            "in": "path",
            "required": true,
            "description": "Ring value (adopt, trial, assess, hold)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tools by ring"
          },
          "404": {
            "description": "Ring not found"
          }
        }
      }
    },
    "/dimensions": {
      "get": {
        "operationId": "listDimensions",
        "summary": "List Dimensions",
        "description": "Get paginated list of all quality dimensions",
        "tags": [
          "Dimensions"
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number (default: 1)",
            "schema": {
              "type": "integer",
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Dimensions collection"
          }
        }
      }
    },
    "/dimensions/{id}": {
      "get": {
        "operationId": "getDimension",
        "summary": "Get Dimension",
        "description": "Get a specific dimension by ID",
        "tags": [
          "Dimensions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Dimension ID",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Dimension details"
          },
          "404": {
            "description": "Dimension not found"
          }
        }
      }
    },
    "/dimensions/{id}/indicators": {
      "get": {
        "operationId": "getDimensionIndicators",
        "summary": "Get Dimension Indicators",
        "description": "Get all indicators for a specific dimension",
        "tags": [
          "Dimensions"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Dimension ID",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Indicators for dimension"
          },
          "404": {
            "description": "Dimension not found"
          }
        }
      }
    },
    "/relationships/graph": {
      "get": {
        "operationId": "getRelationshipsGraph",
        "summary": "Get Relationships Graph",
        "description": "Get the complete knowledge graph of relationships",
        "tags": [
          "Relationships"
        ],
        "responses": {
          "200": {
            "description": "Relationships graph"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Indicator": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "dimension": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "rationale": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "_links": {
            "type": "object"
          }
        },
        "required": [
          "id",
          "name",
          "description"
        ]
      },
      "Tool": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "ring": {
            "type": "string"
          },
          "quadrant": {
            "type": "string"
          },
          "_links": {
            "type": "object"
          }
        },
        "required": [
          "id",
          "name",
          "description"
        ]
      },
      "Dimension": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "indicators": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "_links": {
            "type": "object"
          }
        },
        "required": [
          "id",
          "name",
          "description"
        ]
      }
    }
  },
  "tags": [
    {
      "name": "Root",
      "description": "API root endpoint"
    },
    {
      "name": "Indicators",
      "description": "Quality indicators"
    },
    {
      "name": "Tools",
      "description": "Quality assessment tools"
    },
    {
      "name": "Dimensions",
      "description": "Quality dimensions"
    },
    {
      "name": "Relationships",
      "description": "Entity relationships graph"
    }
  ]
}