X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Femuvim%2Fapi%2Fsonata%2FREADME.md;h=d44ed27c445be0b5a863c66cae6f09bfb2a76b08;hb=7ec665dcbd1cdb9dabada7c6c4338e2ae2a5384b;hp=969ba22cf0f9fa2e3af736b27c997cab30327762;hpb=26455858b9ed9f84c2fc87a2df83ac13bbed1d09;p=osm%2Fvim-emu.git diff --git a/src/emuvim/api/sonata/README.md b/src/emuvim/api/sonata/README.md index 969ba22..d44ed27 100644 --- a/src/emuvim/api/sonata/README.md +++ b/src/emuvim/api/sonata/README.md @@ -2,13 +2,13 @@ ## Upload a package (*.son) file: -To upload the file `simplest-example.son` do: +To upload the file `sonata-demo.son` (from son-schema repo) do: -* `curl -i -X POST -F file=@simplest-example.son http://127.0.0.1:8000/api/packages/uploads` +* `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/uploads` +* `curl http://127.0.0.1:8000/api/packages` To instantiate (start) a service do: @@ -37,14 +37,14 @@ _Note: This API should converge to the API of the original GK as much as possibl Response: -/api/packages/uploads +/api/packages POST - {file-content} as enctype=multipart/form-data {"service_uuid": "c880aaab-f3b9-43ac-ac6b-3d27b46146b7", size=456, sha1=49ee6468dfa4ecbad440d669b249d523a38651be, error: null} -/api/packages/uploads +/api/packages GET - @@ -66,6 +66,10 @@ _Note: This API should converge to the API of the original GK as much as possibl +## 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` \ No newline at end of file