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

Merge branch 'feature/multilayer' into develop

parents 85e47ff6 756a130d
...@@ -3,3 +3,4 @@ ...@@ -3,3 +3,4 @@
**/.idea **/.idea
*.log *.log
**/env **/env
**/venv
...@@ -28,19 +28,33 @@ paths: ...@@ -28,19 +28,33 @@ paths:
responses: responses:
200: 200:
description: "Successful echo of request data" description: "Successful echo of request data"
/graphinfo:
/agi/multilayer/multilayer.png:
get: get:
operationId: "rest.graphinfo.get" operationId: "rest.multilayer.get_image"
tags: tags:
- "GraphInfo" - "Multilayer"
summary: "Get info about clustered nodes" summary: "Returning the multilayer created from AGI data"
description: "Returns multiple metrics for all nodes created by analyzing and clustering the blockchain traces"
parameters: [] parameters: []
produces:
- "image/png"
responses: responses:
200: 200:
description: "Successful operation" description: "Successful echo of request data"
schema:
$ref: "#/definitions/NodeInfo" # /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: definitions:
NodeInfo: 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