Commit 77fff261 authored by Ikram Haq's avatar Ikram Haq
Browse files

Add request body examples for registration resource

parent 3d805b60
Loading
Loading
Loading
Loading
+183 −10
Original line number Diff line number Diff line
@@ -1077,7 +1077,96 @@ paths:
          application/json:
            schema:
              $ref: '#/components/schemas/AppInfo'
        required: false
            example:
              appName: "appName"
              appProvider: "appProvider1"
              appCategory:
                href: "/example/catalogue1"
                id: "id12345"
                name: "RNI"
                version: "version1"
              appDId: "TODO"
              appInstanceId: "ID1"
              endpoint:
                uris:
                  - "mecAppSuptApi/example"
              appServiceRequired:
                - requestedPermissions: "string"
                  serCategory:
                    href: "/example/catalogue1"
                    id: "id12345"
                    name: "RNI"
                    version: "version1"
                  serName: "string"
                  serTransportDependencies:
                    - labels:
                        - "string"
                      serializers:
                        - "JSON"
                      transport:
                        protocol: "string"
                        security:
                          oAuth2Info:
                            grantTypes:
                              - "OAUTH2_CLIENT_CREDENTIALS"
                            tokenEndpoint: "/mecSerMgmtApi/security/TokenEndPoint"
                        type: "REST_HTTP"
                        version: "string"
                  version: "string"
              appServiceOptional:
                - requestedPermissions: "string"
                  serCategory:
                    href: "/example/catalogue1"
                    id: "id12345"
                    name: "RNI"
                    version: "version1"
                  serName: "string"
                  serTransportDependencies:
                    - labels:
                        - "string"
                      serializers:
                        - "JSON"
                      transport:
                        protocol: "string"
                        security:
                          oAuth2Info:
                            grantTypes:
                              - "OAUTH2_CLIENT_CREDENTIALS"
                            tokenEndpoint: "/mecSerMgmtApi/security/TokenEndPoint"
                        type: "REST_HTTP"
                        version: "string"
                  version: "string"
              appFeatureRequired:
                - featureName: "string"
                  version: "string"
              appFeatureOptional:
                - featureName: "string"
                  version: "string"
              isInsByMec: false
              appProfile:
                easId: "appName"
                endPt:
                  uris:
                    - "string"
                acIds:
                  - "string"
                provId: "appProvider1"
                type: "string"
                scheds:
                  - "string"
                svcArea: "string"
                svcKpi: "string"
                permLvl:
                  - "string"
                easFeats:
                  - "string"
                svcContSupp:
                  - "string"
                appLocs:
                  - "string"
                avlRep: 1577836800
                status: "string"
        required: true
      responses:
        '201':
          description: >-
@@ -1097,7 +1186,6 @@ paths:
        '400':
          description: >-
            Bad Request. It is used to indicate that incorrect parameters were passed to the request.
          headers: {}
          content:
            application/problem+json:
              schema:
@@ -1109,7 +1197,6 @@ paths:
        '401':
          description: >-
            Unauthorized. It is used when the client did not submit the appropriate credentials.
          headers: {}
          content:
            application/problem+json:
              schema:
@@ -1121,7 +1208,6 @@ paths:
        '403':
          description: >-
            Forbidden. The operation is not allowed given the current status of the resource.
          headers: {}
          content:
            application/problem+json:
              schema:
@@ -1129,7 +1215,6 @@ paths:
        '404':
          description: >-
            Not Found. It is used when a client provided a URI that cannot be mapped to a valid resource URI.
          headers: {}
          content:
            application/problem+json:
              schema:
@@ -1139,7 +1224,6 @@ paths:
                type: object
                description: Empty schema
      deprecated: false  
    parameters: []
  /registrations/{appInstanceId}:
    get:
      tags:
@@ -1222,6 +1306,95 @@ paths:
          application/json:
            schema:
              $ref: '#/components/schemas/AppInfo'
            example:
              appName: "appName"
              appProvider: "appProvider1"
              appCategory:
                href: "/example/catalogue1"
                id: "id12345"
                name: "RNI"
                version: "version1"
              appDId: "TODO"
              appInstanceId: "ID1"
              endpoint:
                uris:
                  - "mecAppSuptApi/example"
              appServiceRequired:
                - requestedPermissions: "string"
                  serCategory:
                    href: "/example/catalogue1"
                    id: "id12345"
                    name: "RNI"
                    version: "version1"
                  serName: "string"
                  serTransportDependencies:
                    - labels:
                        - "string"
                      serializers:
                        - "JSON"
                      transport:
                        protocol: "string"
                        security:
                          oAuth2Info:
                            grantTypes:
                              - "OAUTH2_CLIENT_CREDENTIALS"
                            tokenEndpoint: "/mecSerMgmtApi/security/TokenEndPoint"
                        type: "REST_HTTP"
                        version: "string"
                  version: "string"
              appServiceOptional:
                - requestedPermissions: "string"
                  serCategory:
                    href: "/example/catalogue1"
                    id: "id12345"
                    name: "RNI"
                    version: "version1"
                  serName: "string"
                  serTransportDependencies:
                    - labels:
                        - "string"
                      serializers:
                        - "JSON"
                      transport:
                        protocol: "string"
                        security:
                          oAuth2Info:
                            grantTypes:
                              - "OAUTH2_CLIENT_CREDENTIALS"
                            tokenEndpoint: "/mecSerMgmtApi/security/TokenEndPoint"
                        type: "REST_HTTP"
                        version: "string"
                  version: "string"
              appFeatureRequired:
                - featureName: "string"
                  version: "string"
              appFeatureOptional:
                - featureName: "string"
                  version: "string"
              isInsByMec: false
              appProfile:
                easId: "appName"
                endPt:
                  uris:
                    - "string"
                acIds:
                  - "string"
                provId: "appProvider1"
                type: "string"
                scheds:
                  - "string"
                svcArea: "string"
                svcKpi: "string"
                permLvl:
                  - "string"
                easFeats:
                  - "string"
                svcContSupp:
                  - "string"
                appLocs:
                  - "string"
                avlRep: 1577836800
                status: "string"
        required: true
      responses:
        '204':