From f5c069b119f0e853a1d55eeab5270a0acf930f3a Mon Sep 17 00:00:00 2001 From: richardrobertreitz Date: Wed, 6 Aug 2025 11:13:49 +0000 Subject: [PATCH] rest(edge): added edge REST call demo --- edge.REST | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 edge.REST diff --git a/edge.REST b/edge.REST new file mode 100644 index 0000000..6e009d7 --- /dev/null +++ b/edge.REST @@ -0,0 +1,87 @@ +# username is the email + +POST https://hub.apps.edge.platform.mg3.mdb.osc.live/api/v1/login HTTP/1.1 +content-type: application/json + +{ + "password": "", + "username": "" +} + +### + +POST https://hub.apps.edge.platform.mg3.mdb.osc.live/api/v1/auth/org/create HTTP/1.1 +Authorization: Bearer 123 +content-type: application/json + +{ + "Address": "edp-developer-framework address", + "Name": "edp-developer-framework", + "Phone": "01234567890", + "Type": "developer" +} + +### + +POST https://hub.apps.edge.platform.mg3.mdb.osc.live/api/v1/auth/org/show HTTP/1.1 +Authorization: Bearer 123 + +### + +POST https://hub.apps.edge.platform.mg3.mdb.osc.live/api/v1/auth/user/show HTTP/1.1 +Authorization: Bearer 123 + +### + +POST https://hub.apps.edge.platform.mg3.mdb.osc.live/api/v1/auth/ctrl/ShowApp HTTP/1.1 +Authorization: Bearer 123 + +{ + "App": { + "key": { + "organization": "edp-developer-framework", + "name": "HelloWorldAuto", + "version": "1.0" + } + }, + "Region": "EU" +} + +### + +POST https://hub.apps.edge.platform.mg3.mdb.osc.live/api/v1/auth/ctrl/CreateApp HTTP/1.1 +content-type: application/json + +{ + "App": { + "key": { + "organization": "edp-developer-framework", + "name": "HelloWorldAuto", + "version": "1.0" + }, + "image_path": "edp.buildth.ing/devfw-cicd/fibonacci_pipeline:development", + "image_type": "Docker", + "access_ports": "tcp:80", + "default_flavor": { + "name": "EU.small" + }, + "deployment": "docker", + "required_outbound_connections": null + }, + "Region": "EU" +} + +### + +POST https://hub.apps.edge.platform.mg3.mdb.osc.live/api/v1/auth/ctrl/DeleteApp HTTP/1.1 + +{ + "App": { + "key": { + "organization": "edp-developer-framework", + "name": "HelloWorldAuto", + "version": "1.0" + } + }, + "Region": "EU" +}