0.0.2 • Published 6 years ago

flow-preview-service v0.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

flow-preview-service

Service for creating flow preview screenshots

Installation

npm install flow-preview-service -g

Run

DEBUG=flow-preview-service:* flow-preview-service

API

stats

GET /

make preview

POST /process
Content-Type: application/json
Payload: { data: <SharedFlowData> }

success response

{
    "success": true,
    "result": {
        "type": "image/png",
        "base64": "data:image/png;base64,iVBORw0KGgoAAAA.."
    }
}

error response

{
    "success": false,
    "error": "Something went wrong"
}