Commit 76a41124 authored by Alexander Lercher's avatar Alexander Lercher

Merge branch 'feature/multilayer' into develop

parents 85e47ff6 756a130d
......@@ -2,4 +2,5 @@
**/.vscode
**/.idea
*.log
**/env
\ No newline at end of file
**/env
**/venv
......@@ -28,19 +28,33 @@ paths:
responses:
200:
description: "Successful echo of request data"
/graphinfo:
/agi/multilayer/multilayer.png:
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"
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:
......
from flask import request, Response, send_file
import pickle as json
def get_image():
return send_file("./rest/multilayer.png", mimetype="image/png")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment