Compare commits

..

1 commit

Author SHA1 Message Date
f5c069b119 rest(edge): added edge REST call demo 2025-08-06 11:13:49 +00:00
2 changed files with 99 additions and 1 deletions

View file

@ -6,7 +6,7 @@ on:
jobs:
build:
runs-on: ubuntu-host
runs-on: ubuntu-22.04
steps:
-
@ -33,10 +33,21 @@ jobs:
registry: ${{ steps.repository.outputs.registry }}
username: "${{ secrets.PACKAGES_USER }}"
password: "${{ secrets.PACKAGES_TOKEN }}"
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-flags: '--allow-insecure-entitlement network.host'
driver-opts: network=host
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
allow: network.host
network: host
platforms: linux/amd64,linux/arm64
tags: ${{ steps.docker.outputs.tags }}

87
edge.REST Normal file
View file

@ -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"
}