Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fsa-svc

Project generated with krait

Small flask app, wrapping pyfsa to provide the file generation functionality through a web api.

Calling the API

To generate a graph, send a CSV string (with spaces instead of newlines to separate between the values) in the same form as fsa-bot requires in the json body. This is the only thing you require- but you can also specify a start, end, and engine.

Example payloads:

{'transitions': 'a,x,y b,x,y'}
{
    'transitions': 'a,x,y b,x,y',
    'start': 'x',
    'end': 'y',
    'engine': 'dot'
}

Make sure to add the 'Content-Type: application/json' header to the request, otherwise you might get an error.

For an example graph, use this bash command:

$ curl -H 'Content-Type: application/json' -d '{"transitions": "a,x,y b,y,x"}' https://fsa-svc-r3k4irmcka-nn.a.run.app -o file.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages