Commit ee5786b0 authored by Walter Featherstone's avatar Walter Featherstone
Browse files

oAuth2Info is not a required parameter & corrected endpoint in examples

parent 864089d7
Loading
Loading
Loading
Loading
+106 −29
Original line number Original line Diff line number Diff line
@@ -120,17 +120,6 @@
      "type": "string",
      "type": "string",
      "format": "uri"
      "format": "uri"
    },
    },
    "Path.SubscriptionType": {
      "name": "subscriptionType",
      "description": "Represents a subscription type to the notifications from the MEC platform.",
      "in": "path",
      "required": true,
      "type": "string",
      "enum": [
        "SerAvailabilityNotificationSubscription",
        "AppTerminationNotificationSubscription"
      ]
    },
    "Path.ServiceId": {
    "Path.ServiceId": {
      "name": "serviceId",
      "name": "serviceId",
      "description": "Represents a MEC service instance.",
      "description": "Represents a MEC service instance.",
@@ -570,21 +559,18 @@
        }
        }
      }
      }
    },
    },
    "/applications/{appInstanceId}/subscriptions/{subscriptionType}/{subscriptionId}": {
    "/applications/{appInstanceId}/subscriptions/AppTerminationNotificationSubscription/{subscriptionId}": {
      "parameters": [
      "parameters": [
        {
        {
          "$ref": "#/parameters/Path.AppInstanceId"
          "$ref": "#/parameters/Path.AppInstanceId"
        },
        },
        {
          "$ref": "#/parameters/Path.SubscriptionType"
        },
        {
        {
          "$ref": "#/parameters/Path.SubscriptionId"
          "$ref": "#/parameters/Path.SubscriptionId"
        }
        }
      ],
      ],
      "get": {
      "get": {
        "description": "The GET method requests information about a subscription for this requestor. Upon success, the response contains entity body with the subscription for the requestor.",
        "description": "The GET method requests information about a subscription for this requestor. Upon success, the response contains entity body with the subscription for the requestor.",
        "operationId": "ApplicationsSubscription.GET",
        "operationId": "AppTerminationSubscription_GET",
        "produces": [
        "produces": [
          "application/json"
          "application/json"
        ],
        ],
@@ -640,7 +626,110 @@
      },
      },
      "delete": {
      "delete": {
        "description": "This method deletes a meMp1Subscription. This method is typically used in \"Unsubscribing from service availability event notifications\" procedure.",
        "description": "This method deletes a meMp1Subscription. This method is typically used in \"Unsubscribing from service availability event notifications\" procedure.",
        "operationId": "ApplicationsSubscription.DELETE",
        "operationId": "AppTerminationSubscription_DELETE",
        "produces": [
          "application/json"
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "403": {
            "description": "Forbidden",
            "schema": {
              "type": "object",
              "required": [
                "ProblemDetails"
              ],
              "properties": {
                "ProblemDetails": {
                  "$ref": "#/definitions/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "schema": {
              "type": "object",
              "properties": {
                "ProblemDetails": {
                  "$ref": "#/definitions/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/applications/{appInstanceId}/subscriptions/SerAvailabilityNotificationSubscription/{subscriptionId}": {
      "parameters": [
        {
          "$ref": "#/parameters/Path.AppInstanceId"
        },
        {
          "$ref": "#/parameters/Path.SubscriptionId"
        }
      ],
      "get": {
        "description": "The GET method requests information about a subscription for this requestor. Upon success, the response contains entity body with the subscription for the requestor.",
        "operationId": "SerAvailabilitySubscription_GET",
        "produces": [
          "application/json"
        ],
        "responses": {
          "200": {
            "description": "Upon success, a response body containing the requested subscription is returned.",
            "schema": {
              "type": "object",
              "properties": {
                "SerAvailabilityNotificationSubscription": {
                  "$ref": "#/definitions/SerAvailabilityNotificationSubscription"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "schema": {
              "type": "object",
              "properties": {
                "ProblemDetails": {
                  "$ref": "#/definitions/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "schema": {
              "type": "object",
              "required": [
                "ProblemDetails"
              ],
              "properties": {
                "ProblemDetails": {
                  "$ref": "#/definitions/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "schema": {
              "type": "object",
              "properties": {
                "ProblemDetails": {
                  "$ref": "#/definitions/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "description": "This method deletes a meMp1Subscription. This method is typically used in \"Unsubscribing from service availability event notifications\" procedure.",
        "operationId": "SerAvailabilitySubscription_DELETE",
        "produces": [
        "produces": [
          "application/json"
          "application/json"
        ],
        ],
@@ -1009,12 +1098,6 @@
                      "endpoint": {
                      "endpoint": {
                        "uris": [
                        "uris": [
                          "/meMp1/service/EntryPoint"
                          "/meMp1/service/EntryPoint"
                        ],
                        "addresses": [
                          {
                            "host": "192.0.2.0",
                            "port": 8080
                          }
                        ]
                        ]
                      },
                      },
                      "security": {
                      "security": {
@@ -1122,9 +1205,6 @@
                    "protocol": "HTTP",
                    "protocol": "HTTP",
                    "version": "2.0",
                    "version": "2.0",
                    "endpoint": {
                    "endpoint": {
                      "uris": [
                        "/meMp1/service/EntryPoint"
                      ],
                      "addresses": [
                      "addresses": [
                        {
                        {
                          "host": "192.0.2.0",
                          "host": "192.0.2.0",
@@ -2271,9 +2351,6 @@
    "SecurityInfo": {
    "SecurityInfo": {
      "description": "This type represents security information related to a transport",
      "description": "This type represents security information related to a transport",
      "type": "object",
      "type": "object",
      "required": [
        "oAuth2Info"
      ],
      "properties": {
      "properties": {
        "oAuth2Info": {
        "oAuth2Info": {
          "$ref": "#/definitions/SecurityInfo.OAuth2Info"
          "$ref": "#/definitions/SecurityInfo.OAuth2Info"
+86 −23
Original line number Original line Diff line number Diff line
@@ -90,15 +90,6 @@ parameters:
    required: true
    required: true
    type: string
    type: string
    format: uri
    format: uri
  Path.SubscriptionType:
    name: subscriptionType
    description: Represents a subscription type to the notifications from the MEC platform.
    in: path
    required: true
    type: string
    enum:
      - SerAvailabilityNotificationSubscription
      - AppTerminationNotificationSubscription
  Path.ServiceId:
  Path.ServiceId:
    name: serviceId
    name: serviceId
    description: Represents a MEC service instance.
    description: Represents a MEC service instance.
@@ -389,19 +380,23 @@ paths:
            properties:
            properties:
              ProblemDetails:
              ProblemDetails:
                $ref: '#/definitions/ProblemDetails'
                $ref: '#/definitions/ProblemDetails'
  '/applications/{appInstanceId}/subscriptions/{subscriptionType}/{subscriptionId}':
  '/applications/{appInstanceId}/subscriptions/AppTerminationNotificationSubscription/{subscriptionId}':
    parameters:
    parameters:
      - $ref: '#/parameters/Path.AppInstanceId'
      - $ref: '#/parameters/Path.AppInstanceId'
      - $ref: '#/parameters/Path.SubscriptionType'
      - $ref: '#/parameters/Path.SubscriptionId'
      - $ref: '#/parameters/Path.SubscriptionId'
    get:
    get:
      description: 'The GET method requests information about a subscription for this requestor. Upon success, the response contains entity body with the subscription for the requestor.'
      description: >-
      operationId: ApplicationsSubscription.GET
        The GET method requests information about a subscription for this
        requestor. Upon success, the response contains entity body with the
        subscription for the requestor.
      operationId: AppTerminationSubscription_GET
      produces:
      produces:
        - application/json
        - application/json
      responses:
      responses:
        '200':
        '200':
          description: 'Upon success, a response body containing the requested subscription is returned.'
          description: >-
            Upon success, a response body containing the requested subscription
            is returned.
          schema:
          schema:
            type: object
            type: object
            properties:
            properties:
@@ -431,8 +426,83 @@ paths:
              ProblemDetails:
              ProblemDetails:
                $ref: '#/definitions/ProblemDetails'
                $ref: '#/definitions/ProblemDetails'
    delete:
    delete:
      description: This method deletes a meMp1Subscription. This method is typically used in "Unsubscribing from service availability event notifications" procedure.
      description: >-
      operationId: ApplicationsSubscription.DELETE
        This method deletes a meMp1Subscription. This method is typically used
        in "Unsubscribing from service availability event notifications"
        procedure.
      operationId: AppTerminationSubscription_DELETE
      produces:
        - application/json
      responses:
        '204':
          description: No Content
        '403':
          description: Forbidden
          schema:
            type: object
            required:
              - ProblemDetails
            properties:
              ProblemDetails:
                $ref: '#/definitions/ProblemDetails'
        '404':
          description: Not Found
          schema:
            type: object
            properties:
              ProblemDetails:
                $ref: '#/definitions/ProblemDetails'
  '/applications/{appInstanceId}/subscriptions/SerAvailabilityNotificationSubscription/{subscriptionId}':
    parameters:
      - $ref: '#/parameters/Path.AppInstanceId'
      - $ref: '#/parameters/Path.SubscriptionId'
    get:
      description: >-
        The GET method requests information about a subscription for this
        requestor. Upon success, the response contains entity body with the
        subscription for the requestor.
      operationId: SerAvailabilitySubscription_GET
      produces:
        - application/json
      responses:
        '200':
          description: >-
            Upon success, a response body containing the requested subscription
            is returned.
          schema:
            type: object
            properties:
              SerAvailabilityNotificationSubscription:
                $ref: '#/definitions/SerAvailabilityNotificationSubscription'
        '400':
          description: Bad Request
          schema:
            type: object
            properties:
              ProblemDetails:
                $ref: '#/definitions/ProblemDetails'
        '403':
          description: Forbidden
          schema:
            type: object
            required:
              - ProblemDetails
            properties:
              ProblemDetails:
                $ref: '#/definitions/ProblemDetails'
        '404':
          description: Not Found
          schema:
            type: object
            properties:
              ProblemDetails:
                $ref: '#/definitions/ProblemDetails'
    delete:
      description: >-
        This method deletes a meMp1Subscription. This method is typically used
        in "Unsubscribing from service availability event notifications"
        procedure.
      operationId: SerAvailabilitySubscription_DELETE
      produces:
      produces:
        - application/json
        - application/json
      responses:
      responses:
@@ -666,9 +736,6 @@ paths:
                    endpoint:
                    endpoint:
                      uris:
                      uris:
                        - '/meMp1/service/EntryPoint'
                        - '/meMp1/service/EntryPoint'
                      addresses:
                        - host: '192.0.2.0'
                          port: 8080
                    security:
                    security:
                      oAuth2Info:
                      oAuth2Info:
                        grantTypes: 'OAUTH2_CLIENT_CREDENTIALS'
                        grantTypes: 'OAUTH2_CLIENT_CREDENTIALS'
@@ -741,8 +808,6 @@ paths:
                  protocol: 'HTTP'
                  protocol: 'HTTP'
                  version: '2.0'
                  version: '2.0'
                  endpoint:
                  endpoint:
                    uris:
                      - '/meMp1/service/EntryPoint'
                    addresses:
                    addresses:
                      - host: '192.0.2.0'
                      - host: '192.0.2.0'
                        port: 8080
                        port: 8080
@@ -1518,8 +1583,6 @@ definitions:
  SecurityInfo:
  SecurityInfo:
    description: This type represents security information related to a transport
    description: This type represents security information related to a transport
    type: object
    type: object
    required:
      - oAuth2Info
    properties:
    properties:
      oAuth2Info:
      oAuth2Info:
        $ref: '#/definitions/SecurityInfo.OAuth2Info'
        $ref: '#/definitions/SecurityInfo.OAuth2Info'