-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
21 lines (13 loc) · 881 Bytes
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Graphviz as a Service
This is a simple program to run a webserver that responds to all GET requests
that provide the correct requests data with rendered graphs in PNG format.
By default, the program listens on port 8000. It looks for a query string
parameter named "graph", where it expects to find a URL-encoded base64
representation of a graph in the dot language used by graphviz's dot program.
Here is an example:
curl -s http://localhost:8000/?graph=ZGlncmFwaCBncmFwaG5hbWUgewogICAgYSAtPiBiIC0-IGM7CiAgICBiIC0-IGQ7Cn0K
This will return a fully-formed PNG image with the graph rendered by graphviz.
You can also POST the graph in plain text in the request body.
To configure the port number that is used, you can either use the --port CLI
argument, or you can set the GS_PORT environment variable.
This software is released into the public domain without any warranty.