Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 585 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 585 Bytes

Simple guillotina server

This is an exampe of how simple it is to define and start a server application on top of guillotina.

To download and install

git clone git@github.com:lferran/guillotina-simpleserver.git
cd guillotina-simpleserver
pip install -e .

Run the server

g -c config.json

And then you already have the new GET /@double/{value} service available:

curl -XGET "http://localhost:8080/@double/3"                               ~
{"value": 6}

To run the tests

pip install -e '.[test]'
pytest tests