swagger: "2.0"
info:
  title: Semantic Linking microservice
  description: This is the documentation for the semantic linking microservice.
  version: "1.0.0"

consumes:
  - "application/json"
produces:
  - "application/json"

basePath: "/api"

paths:
  /debug:
    post:
      operationId: "rest.debug.echo"
      tags:
        - "Echo"
      summary: "Echo function for debugging purposes"
      description: "Echoes the input back to the caller."
      parameters:
        - in: body
          name: "Object"
          required: true
          schema:
            type: object
      responses:
        200:
          description: "Successful echo of request data"

  /agi/multilayer/multilayer.png:
    get:
      operationId: "rest.multilayer.get_image"
      tags:
        - "Multilayer" 
      summary: "Returning the multilayer created from AGI data"
      parameters: []
      produces:
        - "image/png"
      responses:
        200:
          description: "Successful echo of request data"

  # /graphinfo:
  #   get:
  #       operationId: "rest.graphinfo.get"
  #       tags:
  #         - "GraphInfo"
  #       summary: "Get info about clustered nodes"
  #       description: "Returns multiple metrics for all nodes created by analyzing and clustering the blockchain traces"
  #       parameters: []
  #       responses:
  #         200:
  #           description: "Successful operation"
  #           schema:
  #             $ref: "#/definitions/NodeInfo"

definitions:
  NodeInfo:
    type: "object"
    properties:
      label:
        type: string
      centrality:
        type: number
      adjacencies:
        type: integer
      degree:
        type: number
      betweenness:
        type: object
        properties:
            to_node:
                type: integer
            value: 
                type: number
      betweenness_centrality:
        type: number
    