tree: d67dbc8ae18ab86a2a346e775c55a96612bf8c13 [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 simplest-example.son do:

  • curl -i -X POST -F file=@simplest-example.son http://127.0.0.1:8000/api/packages/uploads

To list all uploaded packages do:

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

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