Commit 8ef05ea5 authored by Jérémy Lacoche's avatar Jérémy Lacoche
Browse files

Fix in components not correctly referenced, replaced one header with query...

Fix in components not correctly referenced, replaced one header with query (getPoses), handle correctly one mode par UUID in getPoses and subscriptions
parent 1995d168
Loading
Loading
Loading
Loading
+28 −1
Original line number Original line Diff line number Diff line
@@ -121,7 +121,7 @@
              example : 50.00
              example : 50.00
            mode:
            mode:
              description: Mode representing the context of the Relocalization information (AR device to WorldAnchor/Trackable or WorldAnchor/Trackable to AR device)
              description: Mode representing the context of the Relocalization information (AR device to WorldAnchor/Trackable or WorldAnchor/Trackable to AR device)
              $ref: '#/components/schemas/Mode'
              $ref: '#/components/schemas/Mode_WorldAnalysis'
            value:
            value:
              description: The pose value
              description: The pose value
              oneOf:
              oneOf:
@@ -175,6 +175,33 @@
              description: Unit system of the pose
              description: Unit system of the pose
              $ref: '#/components/schemas/UnitSystem'      
              $ref: '#/components/schemas/UnitSystem'      


        GeodeticPoseValue:
          description : A pose value in a geodetic coordinate system
          allOf:     #inheritance
            - $ref: '#/components/schemas/PoseValue'
          properties:
            altitude: 
              type: number
              example: 70.0
            longitude:
              type: number
              example: 7.013579
            latitude: 
              type: number
              example: 43.57351
            rotation:  
              description: Pose Rotation
              $ref: '#/components/schemas/Quaternion'
            geodeticsystem:
              description: Associated geodetic system of the pose
              type: string
              example: "WGS84"
            rotationTarget:
                description: Coordinate system of the rotation
                type : string
                enum: [EASTUPSOUTH, WESTUPNORTH]
                example: EASTUPSOUTH
        
        Vector3:
        Vector3:
          description: A 3 coordinates vector
          description: A 3 coordinates vector
          type: array
          type: array
+19 −50
Original line number Original line Diff line number Diff line
@@ -152,21 +152,24 @@ paths:
        schema:
        schema:
          $ref: '../common/commonopenapi.yaml#/components/schemas/SessionID'
          $ref: '../common/commonopenapi.yaml#/components/schemas/SessionID'
      - name: uuid
      - name: uuid
        in: header
        in: query
        description: UUID of the Trackable or Anchor to request
        description: UUID of the Trackable or Anchor to request with the mode representing the context of the Relocalization information (AR device to WorldAnchor/Trackable or WorldAnchor/Trackable to AR device)
        required: true
        required: true
        schema:
        schema:
          type: array
          type: array
          items:
          items:
            type: object
            properties:
              uuid:
                type: string
                type: string
                format: uuid
                format: uuid
                example: "fa8bbe40-8052-11ec-a8a3-0242ac120002"
                example: "fa8bbe40-8052-11ec-a8a3-0242ac120002"
      - name: mode
              mode:
        in: query
                description: Mode representing the context of the Relocalization information (AR device to WorldAnchor/Trackable or WorldAnchor/Trackable to AR device)
                description: Mode representing the context of the Relocalization information (AR device to WorldAnchor/Trackable or WorldAnchor/Trackable to AR device)
        required: true
        schema:
                $ref: '../common/commonopenapi.yaml#/components/schemas/Mode_WorldAnalysis'
                $ref: '../common/commonopenapi.yaml#/components/schemas/Mode_WorldAnalysis'
            required:
              - uuid
              - mode
      responses: 
      responses: 
        '200':
        '200':
          description: Successful operation.
          description: Successful operation.
@@ -206,15 +209,6 @@ paths:
        name: sessionID
        name: sessionID
        schema:
        schema:
          $ref: '../common/commonopenapi.yaml#/components/schemas/SessionID'
          $ref: '../common/commonopenapi.yaml#/components/schemas/SessionID'
      - name: target
        in: query
        description: UUID of the Trackable or Anchor to subscribe
        required: false
        schema:
          type: array
          items:
            format: uuid
            example: "fa8bbe40-8052-11ec-a8a3-0242ac120002"
      requestBody:
      requestBody:
          required: true
          required: true
          content:
          content:
@@ -490,7 +484,7 @@ components:
            oneOf:
            oneOf:
              - $ref: '#/components/schemas/MatrixPoseValue'
              - $ref: '#/components/schemas/MatrixPoseValue'
              - $ref: '../common/commonopenapi.yaml#/components/schemas/VectorQuaternionPoseValue'
              - $ref: '../common/commonopenapi.yaml#/components/schemas/VectorQuaternionPoseValue'
              - $ref: '#/components/schemas/GeodeticPoseValue'
              - $ref: '../common/commonopenapi.yaml#/components/schemas/GeodeticPoseValue'
            example:
            example:
              type: "MATRIX"
              type: "MATRIX"
              transform: [ 1, 0, 0, 3,
              transform: [ 1, 0, 0, 3,
@@ -523,33 +517,6 @@ components:
            description: Unit system of the pose
            description: Unit system of the pose
            $ref: '../common/commonopenapi.yaml#/components/schemas/UnitSystem'
            $ref: '../common/commonopenapi.yaml#/components/schemas/UnitSystem'


      GeodeticPoseValue:
        description : A pose value in a geodetic coordinate system
        allOf:     #inheritance
          - $ref: '#/components/schemas/PoseValue'
        properties:
          altitude: 
            type: number
            example: 70.0
          longitude:
            type: number
            example: 7.013579
          latitude: 
            type: number
            example: 43.57351
          rotation:  
            description: Pose Rotation
            $ref: '../common/commonopenapi.yaml#/components/schemas/Quaternion'
          geodeticsystem:
            description: Associated geodetic system of the pose
            type: string
            example: "WGS84"
          rotationTarget:
              description: Coordinate system of the rotation
              type : string
              enum: [EASTUPSOUTH, WESTUPNORTH]
              example: EASTUPSOUTH

      PoseConfiguration:
      PoseConfiguration:
        description: An object representing the framerate that the World Analysis needs to reach for a given Trackable Type
        description: An object representing the framerate that the World Analysis needs to reach for a given Trackable Type
        type: object
        type: object
@@ -608,7 +575,9 @@ components:
              format: uuid
              format: uuid
            example: [ "fa8bbe40-8052-11ec-a8a3-0242ac120002", "fa8bbe40-8052-11ec-a8a3-0242ac120003"]
            example: [ "fa8bbe40-8052-11ec-a8a3-0242ac120002", "fa8bbe40-8052-11ec-a8a3-0242ac120003"]
          mode:
          mode:
            description: Mode representing the context of the Relocalization information (AR device to WorldAnchor/Trackable or WorldAnchor/Trackable to AR device)
            description: List of modes representing the context of the Relocalization information (AR device to WorldAnchor/Trackable or WorldAnchor/Trackable to AR device)
            type: array
            items:
              $ref: '../common/commonopenapi.yaml#/components/schemas/Mode_WorldAnalysis'
              $ref: '../common/commonopenapi.yaml#/components/schemas/Mode_WorldAnalysis'
          validity: 
          validity: 
            description: Subscription validity delay in millisecond 
            description: Subscription validity delay in millisecond 
+7 −7
Original line number Original line Diff line number Diff line
@@ -670,7 +670,7 @@ components:
                    Transform3D:
                    Transform3D:
                      $ref : '../common/commonopenapi.yaml#/components/schemas/Transform3D'
                      $ref : '../common/commonopenapi.yaml#/components/schemas/Transform3D'
                    mode:
                    mode:
                      $ref: '#/components/schemas/Mode_WorldStorage'
                      $ref: '../common/commonopenapi.yaml#/components/schemas/Mode_WorldStorage'


        Trackable:
        Trackable:
          description: An element representing a Trackable object in the real world.
          description: An element representing a Trackable object in the real world.
@@ -706,7 +706,7 @@ components:
              enum: [FIDUCIAL_MARKER, IMAGE_MARKER, MAP, GEOPOSE, OTHER]
              enum: [FIDUCIAL_MARKER, IMAGE_MARKER, MAP, GEOPOSE, OTHER]
              example: FIDUCIAL_MARKER
              example: FIDUCIAL_MARKER
            trackableEncodingInformation:      
            trackableEncodingInformation:      
              $ref: '#/components/schemas/EncodingInformationStructure'
              $ref: '../common/commonopenapi.yaml#/components/schemas/EncodingInformationStructure'   
            trackablePayload:
            trackablePayload:
              description: The data provided to create the Trackable in a specific format handled by the world storage service.
              description: The data provided to create the Trackable in a specific format handled by the world storage service.
              type: string
              type: string
@@ -715,7 +715,7 @@ components:
            localCRS:
            localCRS:
              $ref: '../common/commonopenapi.yaml#/components/schemas/Transform3D'
              $ref: '../common/commonopenapi.yaml#/components/schemas/Transform3D'
            unit:
            unit:
              $ref: '#/components/schemas/UnitSystem'
              $ref: '../common/commonopenapi.yaml#/components/schemas/UnitSystem'
            trackableSize:
            trackableSize:
              $ref: '../common/commonopenapi.yaml#/components/schemas/Size'
              $ref: '../common/commonopenapi.yaml#/components/schemas/Size'
            keyvalueTags:
            keyvalueTags:
@@ -750,9 +750,9 @@ components:
              format: uuid
              format: uuid
              example: 6ddeb59e-7740-42f7-b329-1374b92e7fc2
              example: 6ddeb59e-7740-42f7-b329-1374b92e7fc2
            localCRS:
            localCRS:
              $ref: '#/components/schemas/Transform3D'
              $ref: '../common/commonopenapi.yaml#/components/schemas/Transform3D'
            unit:
            unit:
              $ref: '#/components/schemas/UnitSystem'
              $ref: '../common/commonopenapi.yaml#/components/schemas/UnitSystem'
            worldAnchorSize:
            worldAnchorSize:
              $ref: '../common/commonopenapi.yaml#/components/schemas/Size'
              $ref: '../common/commonopenapi.yaml#/components/schemas/Size'
            keyvalueTags:
            keyvalueTags:
@@ -798,7 +798,7 @@ components:
            transform:
            transform:
              $ref: '../common/commonopenapi.yaml#/components/schemas/Transform3D'
              $ref: '../common/commonopenapi.yaml#/components/schemas/Transform3D'
            unit:
            unit:
              $ref: '#/components/schemas/UnitSystem'
              $ref: '../common/commonopenapi.yaml#/components/schemas/UnitSystem'
            keyvalueTags:
            keyvalueTags:
              $ref: '#/components/schemas/KeyvalueTagList'
              $ref: '#/components/schemas/KeyvalueTagList'