Uploaded image for project: 'Open Concept Lab Module'
  1. Open Concept Lab Module
  2. OCLM-55

Adjust to new export api

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Medium
    • Sprint:
      Open Concept Lab 3

      Description

      There are changes in export API and the ocl module should be aligned with them.

      The latest version of OCL API is deployed at https://api.staging.openconceptlab.org/.

      The docs are at https://github.com/OpenConceptLab/oclapi/wiki/Export-API

      Some changes:
      1. There's no /latest endpoint, you need to list versions and select the highest (but not HEAD) from the /versions endpoint
      2. If POST to the selected version returns "202 Accepted" or "409 Conflict", then the export for that version is not yet ready, so get the previous one.
      3. If POST to the selected version returns "303 See Other" then get the export file from the Location header

      Do not take the above as granted. Verify, if it works. You can use
      https://api.staging.openconceptlab.org/orgs/openmrs/collections/reference-application/ for testing

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tmarzeion Tomasz Marzeion [X] (Inactive)
              Reporter:
              raff Rafal Korytkowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 4 hours
                  1d 4h