Commit 685b49a6 authored by George Papathanail's avatar George Papathanail
Browse files

refactor: align edge apps with spec 0.1.0-alpha.1

parent 7e3d62e1
Loading
Loading
Loading
Loading
+9 −12
Original line number Diff line number Diff line
@@ -78,25 +78,22 @@ via the `conformance` marker.
#### Vendored spec pins (update this list when bumping a pin)

**Edge Application Management**[camaraproject/EdgeApplicationManagement](https://github.com/camaraproject/EdgeApplicationManagement)
at commit `0a64e153e8b860f9a8b7c045fe2e840e7278dada` (API version `wip`, served
under `{apiRoot}/edge-application-management/vwip`), vendored in
`src/open_exposure_gateway/api/camara/edge_application_management/vwip/`:
API version `0.1.0-alpha.1` (served under
`{apiRoot}/edge-application-management/v0.1alpha1`), vendored in
`src/open_exposure_gateway/api/camara/edge_application_management/v0_1_0_alpha_1/`:

| Vendored file | Upstream file |
|---|---|
| `API_definitions/edge-application-management.yaml` | `code/API_definitions/edge-application-management.yaml` |
| `common/CAMARA_common.yaml` | `code/common/CAMARA_common.yaml` |
| `API_definitions/edge-application-management-0.1.0-alpha.1.yaml` | `code/API_definitions/edge-application-management.yaml` |

To refresh or bump the pin, fetch **both files from the same commit** (a
mismatched pair breaks the spec's relative `$ref`s or silently changes its
meaning), from the pin folder:
The `0.1.0-alpha.1` bundle is self-contained (no external `$ref`s), so it is a
single vendored file — the previous `common/` pair is no longer needed. To
refresh or bump the pin, fetch the release's bundled spec from the pin folder:

```sh
SHA=0a64e153e8b860f9a8b7c045fe2e840e7278dada
curl -sL -o API_definitions/edge-application-management.yaml \
SHA=<upstream commit for the target release>
curl -sL -o API_definitions/edge-application-management-0.1.0-alpha.1.yaml \
  "https://raw.githubusercontent.com/camaraproject/EdgeApplicationManagement/$SHA/code/API_definitions/edge-application-management.yaml"
curl -sL -o common/CAMARA_common.yaml \
  "https://raw.githubusercontent.com/camaraproject/EdgeApplicationManagement/$SHA/code/common/CAMARA_common.yaml"
```

### Running with Docker
+0 −0

File changed and moved.

Preview size limit exceeded, changes collapsed.

+5 −4
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ from uuid import UUID, uuid4
from fastapi import APIRouter, Depends, Query, Request, Response, status

from open_exposure_gateway.api.camara.common import IdempotencyKeyHeader
from open_exposure_gateway.api.camara.edge_application_management.vwip.schemas import (
from open_exposure_gateway.api.camara.edge_application_management.v0_1_0_alpha_1.schemas import (
    AppDeploymentId,
    AppDeploymentInfo,
    AppInstanceInfo,
@@ -37,9 +37,10 @@ from open_exposure_gateway.dependencies import (
)
from open_exposure_gateway.schemas.common import ErrorInfo

# CAMARA base path: the spec serves at {apiRoot}/edge-application-management/vwip;
# the api-name/version segment is owned by this package, {apiRoot} by the deployment.
BASE_PATH = "/edge-application-management/vwip"
# CAMARA base path: the spec serves at {apiRoot}/edge-application-management/v0.1alpha1
# (edge-application-management 0.1.0-alpha.1); the api-name/version segment is owned
# by this package, {apiRoot} by the deployment.
BASE_PATH = "/edge-application-management/v0.1alpha1"

router = APIRouter(prefix=BASE_PATH)

+0 −0

File moved.

+0 −931

File deleted.

Preview size limit exceeded, changes collapsed.

Loading