Uploaded image for project: 'mod-data-import-converter-storage'
  1. mod-data-import-converter-storage
  2. MODDICONV-90

Create Batch GET API for Import Profiles retrieval including Profile Associations

    XMLWordPrintable

Details

    • EPAM BatchLoader Sprint 31
    • 8
    • Folijet

    Description

      It is required to do the following:

      1. design and implement the subject API, define JSON data structure for retrieval (GET) operations;
      2. modify the existing import-profiles endpoint to use the new API.

      Now we have a vision for the following JSON structure for profiles retrieval (for ActionProfile as a subject):

      {
        "id": "968cfe23-909e-422b-8a24-2387971b9d0b",
        "name": "Create order",
        "description": "Create Order data in 9xx fields",
        "tags": {
          "tagList":[
            "acq-related",
            "preliminary"
          ]
        },
        "reactTo": "NON-MATCH",
        "action": "CREATE",
        "folioRecord": "ORDER",
        "associations": {
          "mappingProfiles": [{
            "id": "0d85d496-4504-4e79-be97-c6995d101b7e",
            "contentType": "MAPPING_PROFILE",
            "content": {
              "id": "0d85d496-4504-4e79-be97-c6995d101b7e",
              "name": "Order from MARC 1",
              "description": "Order from CoolVendor MARC order record",
              "tags": {
                "tagList": [
                  "cool-vendor"
                ]
              },
              "incomingRecordType": "MARC_BIBLIOGRAPHIC",
              "folioRecord": "ORDER",
              "deleted": false,
              "userInfo": {
                "firstName": "DIKU",
                "lastName": "ADMINISTRATOR",
                "userName": "diku_admin"
              },
              "metadata": {
                "createdDate": "2018-12-02T09:05:30.000+0000",
                "createdByUserId": "",
                "createdByUsername": "",
                "updatedDate": "2018-12-05T09:05:30.000+0000",
                "updatedByUserId": "",
                "updatedByUsername": ""
              }
            }
          }],
          "jobProfiles": [{
            "id" : "828a787c-bcf3-4c28-891a-9e6f3ba5068b",
            "contentType" : "JOB_PROFILE",
            "content" : {
              "id" : "828a787c-bcf3-4c28-891a-9e6f3ba5068b",
              "name" : "Load MARC, then throw away",
              "description" : "Ordered on vendor site; load MARC to create bib, holdings, item, and order; then discard MARC",
              "dataType" : "MARC",
              "tags" : {
                "tagList" : [ "acq", "daily" ]
              },
              "deleted" : false,
              "userInfo" : {
                "firstName" : "DIKU",
                "lastName" : "ADMINISTRATOR",
                "userName" : "diku_admin"
              },
              "metadata" : {
                "createdDate" : "2018-11-01T11:08:21.000+0000",
                "createdByUserId" : "",
                "createdByUsername" : "diku_admin",
                "updatedDate" : "2018-12-01T19:01:41.000+0000",
                "updatedByUserId" : "",
                "updatedByUsername" : "diku_admin"
              }
            },
            "childSnapshotWrappers" : [ ]
          }, {
            "id": "448ae575-daec-49c1-8041-d64c8ed8e5b1",
            "contentType": "JOB_PROFILE",
            "content": {
              "id": "448ae575-daec-49c1-8041-d64c8ed8e5b1",
              "name": "Load vendor order records",
              "description": "Ordered on vendor site; load MARC to create bib, holdings, item, and order; keep MARC",
              "dataType": "MARC",
              "tags": {
                "tagList": [
                  "acq",
                  "daily"
                ]
              },
              "deleted": false,
              "userInfo": {
                "firstName": "DIKU",
                "lastName": "ADMINISTRATOR",
                "userName": "diku_admin"
              },
              "metadata": {
                "createdDate": "2018-10-30T12:41:22.000+0000",
                "createdByUserId": "",
                "createdByUsername": "diku_admin",
                "updatedDate": "2018-11-02T12:09:51.000+0000",
                "updatedByUserId": "",
                "updatedByUsername": "diku_admin"
              }
            }
          }]
        },
        "deleted": false
      }
      
      

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                OleksiiKuzminov Oleksii Kuzminov
                taras_tkachenko Taras Tkachenko
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases