Uploaded image for project: 'EVSClient'
  1. EVSClient
  2. EVSCLT-887

[EVS API] Read ValidatedObject and XML Gazelle Validation Report through webservice

    Details

      Description

      As SUT Operator, I MUST be able to read validated objects from development environment or from CI builds, calling web-services and without going through EVSClient GUI.

      Acceptance criteria :

      * As a validation client, I MUST be able to read a validatedobject resource by its OID using a GET request to EVSClient and I receive the requested complete validatedobject in XML.

      I.e :
      Request : GET EVSClient/rest/validatedObjects/1.3.6.1.4.1.12559.11.36.3.1.14342 HTTP/1.1
      Accept: application/xml

      Response : HTTP/1.1 200 OK
      Content-Type: application/xml;charset=UTF-8

      <?xml...>
      <ValidatedObject oid="1.3.6.1.4.1.12559.11.36.3.1.14342" validationDate="2021-04-08T16:30:00"
         validationStatus="DONE_FAILED">
         <OwnerMetadata username="ceoche" organization="IHE Europe" private="true" />
         <ValidationService name="SchematronValidator" validator="ANS - CR-BIO - v2021-02-15"/>
         <Object type="CR-BIO" location="EVSClient/rest/validatedObjects/1.3.6.1.4.1.12559.11.36.3.1.14342/object" />
         <ValidationReport location="EVSClient/rest/validatedObjects/1.3.6.1.4.1.12559.11.36.3.1.14342/validationReport" />
      </ValidatedObject>

      * As a validation client, I MUST be able to read a validationReport by using the validatedobject OID using a GET request to EVSClient and I receive the requested complete validationReport in XML.

      I.e :
      Request : GET EVSClient/rest/validatedObjects/1.3.6.1.4.1.12559.11.36.3.1.14342/validationReport HTTP/1.1
      Accept: application/xml

      Response : HTTP/1.1 200 OK
      Content-Type: application/xml;charset=UTF-8

      <xml.... >

      * Exception handling on client parameters :
             - If the OID used as parameter is unknown, EVSClient must respond with HTTP 404 Not found
             - If the OID used as parameter refers to a private validatedobject, EVSClient must respond with HTTP 401 Unauthorized

      Related requirements :

      [EVS-14]
      [EVS-58]
      [EVS-59]
      [EVS-61]
      [EVS-64]
      [EVS-69]
      [EVS-70]
      [EVS-74]

      Technical details :

      * Gazelle Validation report MUST support Java 7
      * An XML presenter will be improved for the ValidatedObject
      * An XML presenter will be required for the Gazelle Validation report

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dgo Daniel Graveto
              Reporter:
              NicolasBailliet Nicolas Bailliet
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Start date:
                End date:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 days
                  4d
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 2 hours Time Not Required
                  2d 2h

                    Potential Duplicates