tree: 38729015986674bbd984323d90915ac8938cc8cf [path history] [tgz]
  1. README.md
  2. __init__.py
  3. dummygatekeeper.py
src/emuvim/api/sonata/README.md

SONATA dummy gatekeeper API:

Upload a package (*.son) file:

To upload the file sonata-demo.son (from son-schema repo) do:

  • curl -i -X POST -F file=@sonata-demo.son http://127.0.0.1:8000/api/packages

To list all uploaded packages do:

  • curl http://127.0.0.1:8000/api/packages

To instantiate (start) a service do:

  • curl -X POST http://127.0.0.1:8000/api/instantiations -d "{\"service_uuid\":\"59446b64-f941-40a8-b511-effb0512c21b\"}"

To list all running services do:

  • curl http://127.0.0.1:8000/api/instantiations

API definition

This page describes the dummy gatekeeper API. This gatekeeper fakes the original platform gatekeeper during development SDK tools like son-push.

It is also able to deploy our example service package (not any arbitrary service package!) in the emulator for the Y1 demo.

Note: This API should converge to the API of the original GK as much as possible!

REST API:

Run REST API as part of the emulator:

  • sudo python src/emuvim/examples/sonata_y1_demo_topology_1.py

Run REST API in standalone mode (without emulator):

  • sudo python src/emuvim/api/sonata/dummygatekeeper.py