Commit 482a55a8 authored by Yann Garcia's avatar Yann Garcia
Browse files

Update Swagger file & models; Rebuild meep-dai

parent c5907bed
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ Method | HTTP request | Description
[**AppLocationAvailabilityPOST**](DevAppApi.md#AppLocationAvailabilityPOST) | **Post** /obtain_app_loc_availability | Obtain the location constraints for a new application context.
[**DevAppContextDELETE**](DevAppApi.md#DevAppContextDELETE) | **Delete** /app_contexts/{contextId} | Deletion of an existing application context.
[**DevAppContextPUT**](DevAppApi.md#DevAppContextPUT) | **Put** /app_contexts/{contextId} | Updating the callbackReference and/or appLocation of an existing application context.
[**DevAppContextsPOST**](DevAppApi.md#DevAppContextsPOST) | **Post** /app_contexts | Creation of a new application context.
[**DevAppContextsGET**](DevAppApi.md#DevAppContextsGET) | **Post** /app_contexts | Creation of a new application context.
[**MeAppListGET**](DevAppApi.md#MeAppListGET) | **Get** /app_list | Get available application information.

# **AppLocationAvailabilityPOST**
@@ -95,8 +95,8 @@ No authorization required

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **DevAppContextsPOST**
> AppContext DevAppContextsPOST(ctx, body)
# **DevAppContextsGET**
> AppContext DevAppContextsGET(ctx, body)
Creation of a new application context.

Used to create a new application context. Upon success, the response contains entity body describing the created application context.
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ Class | Method | HTTP request | Description
*DevAppApi* | [**appLocationAvailabilityPOST**](Apis/DevAppApi.md#applocationavailabilitypost) | **POST** /obtain_app_loc_availability | Obtain the location constraints for a new application context.
*DevAppApi* | [**devAppContextDELETE**](Apis/DevAppApi.md#devappcontextdelete) | **DELETE** /app_contexts/{contextId} | Deletion of an existing application context.
*DevAppApi* | [**devAppContextPUT**](Apis/DevAppApi.md#devappcontextput) | **PUT** /app_contexts/{contextId} | Updating the callbackReference and/or appLocation of an existing application context.
*DevAppApi* | [**devAppContextsPOST**](Apis/DevAppApi.md#devappcontextspost) | **POST** /app_contexts | Creation of a new application context.
*DevAppApi* | [**devAppContextsGET**](Apis/DevAppApi.md#devappcontextspost) | **POST** /app_contexts | Creation of a new application context.
*DevAppApi* | [**meAppListGET**](Apis/DevAppApi.md#meapplistget) | **GET** /app_list | Get available application information.
*UnsupportedApi* | [**individualSubscriptionDELETE**](Apis/UnsupportedApi.md#individualsubscriptiondelete) | **DELETE** /subscriptions/{subscriptionId} | Used to cancel the existing subscription.

+1 −3
Original line number Diff line number Diff line
# Copyright (c) 2022  The AdvantEDGE Authors
# Copyright (c) 2024  The AdvantEDGE Authors
# 
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -25,8 +25,6 @@ VOLUME /onboardedapp-vol

RUN chmod +x /entrypoint.sh

RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends procps

EXPOSE 31120-31129/tcp
+1 −147
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ paths:
      summary: Creation of a new application context.
      description: "Used to create a new application context. Upon success, the response\
        \ contains entity body describing the created application context."
      operationId: devAppContextsPOST
      operationId: devAppContextsGET
      parameters: []
      requestBody:
        description: Entity body in the request contains the Application Context as
@@ -353,88 +353,6 @@ paths:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
  /subscriptions/{subscriptionId}:
    post:
      tags:
      - app_term
      summary: MEC011 Application Termination notification for self termination
      description: Terminates itself.
      operationId: mec011AppTerminationPOST
      parameters:
      - name: subscriptionId
        in: path
        description: "Refers to created subscription, where the VIS API allocates\
          \ a unique resource name for this subscription"
        required: true
        style: simple
        explode: false
        schema:
          type: string
      requestBody:
        description: Termination notification details
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AppTerminationNotification'
            example:
              notificationType: AppTerminationNotification
              operationAction: TERMINATING
              maxGracefulTimeout: 10
              _links:
                subscription:
                  href: http://mec011Server.example.com/mec_app_support/v1/applications/appId1234/subscriptions/sub123
                confirmTermination:
                  href: http://mec011Server.example.com/mec_app_support/v1/confirm_termination
        required: true
      responses:
        "204":
          description: No Content
      x-swagger-router-controller: notifications
    delete:
      tags:
      - unsupported
      summary: Used to cancel the existing subscription.
      description: Used to cancel the existing subscription.
      operationId: individualSubscriptionDELETE
      parameters:
      - name: subscriptionId
        in: path
        description: "Refers to created subscription, where the VIS API allocates\
          \ a unique resource name for this subscription"
        required: true
        style: simple
        explode: false
        schema:
          type: string
      responses:
        "204":
          description: No Content
        "401":
          description: "Unauthorized :  used when the client did not submit credentials."
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        "403":
          description: "Forbidden :  operation is not allowed given the current status\
            \ of the resource."
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        "404":
          description: "Not Found :  used when a client provided a URI that cannot\
            \ be mapped to a valid resource URI."
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        "429":
          description: "Too Many Requests : used when a rate limiter has triggered."
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
components:
  schemas:
    AddressChangeNotification:
@@ -943,70 +861,6 @@ components:
          format: uri
          x-etsi-mec-cardinality: 0..1
          x-etsi-mec-origin-type: URI
    Links:
      required:
      - self
      type: object
      properties:
        self:
          $ref: '#/components/schemas/LinkType'
      description: Hyperlink related to the resource. This shall be only included
        in the HTTP responses and in HTTP PUT requests.
      x-etsi-mec-cardinality: 0..1
      x-etsi-mec-origin-type: Structure (inlined)
    LinkType:
      required:
      - href
      type: object
      properties:
        href:
          type: string
          description: URI referring to a resource
          format: uri
          x-etsi-mec-cardinality: "1"
          x-etsi-mec-origin-type: Uri
      example:
        href: http://example.com/aeiou
      x-etsi-ref: 6.5.13
    AppTerminationNotification:
      required:
      - _links
      - maxGracefulTimeout
      - notificationType
      - operationAction
      type: object
      properties:
        notificationType:
          type: string
          description: Shall be set to AppTerminationNotification.
        operationAction:
          $ref: '#/components/schemas/OperationActionType'
        maxGracefulTimeout:
          type: integer
          description: Maximum timeout value in seconds for graceful termination or
            graceful stop of an application instance.
          format: uint32
        _links:
          $ref: '#/components/schemas/AppTerminationNotification__links'
      description: This type represents the information that the MEC platform notifies
        the subscribed application instance about  the corresponding application instance
        termination/stop.
    OperationActionType:
      type: string
      description: Operation that is being performed on the MEC application instance.
      enum:
      - STOPPING
      - TERMINATING
    AppTerminationNotification__links:
      required:
      - subscription
      type: object
      properties:
        subscription:
          $ref: '#/components/schemas/LinkType'
        confirmTermination:
          $ref: '#/components/schemas/LinkType'
      description: Object containing hyperlinks related to the resource.
    AppContext_appInfo_userAppInstanceInfo:
      type: object
      properties:
+6 −0
Original line number Diff line number Diff line
@@ -140,6 +140,10 @@ github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyN
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
github.com/hashicorp/go-immutable-radix v1.3.0 h1:8exGP7ego3OmkfksihtSouGMZ+hQrhxx+FVELeXpVPE=
github.com/hashicorp/go-immutable-radix v1.3.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
github.com/hashicorp/go-memdb v1.3.4 h1:XSL3NR682X/cVk2IeV0d70N4DZ9ljI885xAEU8IoK3c=
github.com/hashicorp/go-memdb v1.3.4/go.mod h1:uBTr1oQbtuMgd1SSGoR8YV27eT3sBHbYiNm53bMpgSg=
github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU=
@@ -151,6 +155,8 @@ github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09
github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90=
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc=
github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4=
github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ=
github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
Loading