Uploaded image for project: 'mod-source-record-manager'
  1. mod-source-record-manager
  2. MODSOURMAN-541

Update existing CLI endpoint GET /mapping-rules to support MARC Holdings default rules

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      eHoldings Sprint 121
    • Story Points:
      3
    • Development Team:
      Spitfire
    • Release:
      R3 2021

      Description

      Description:
      There are existing mapping rules stored in mod-source-record-manager for MARC_BIB default mapping rules.
      The intention of this story is to adjust existing logic to work with default rules for MARC_HOLDINGS.

      Approach:

      • modify existing
        GET /mapping-rules 

        endpoint to

        GET /mapping-rules/marc-holdings

        An endpoint should support URI path parameters:

        • marc-holdings
        • marc-bib

      and return corresponding rules

      • update ModuleDescriptor.json file with changes for endpoint
      • update mapping-rules-provider.raml with URI path parameters. See RAML documentation
      • create a sample JSON file for implementation. Default rules will be created in the scope of https://issues.folio.org/browse/MODSOURMAN-540
      • implement the logic to return rules according to the record type.

      Acceptance criteria:

      • endpoints for MARC_HOLDINGS modified
      • ensure that changes done for this story will not break endpoints for MARC_BIB
      • documentation RuleProcessorApi.md updated with additional info related to MARC_HOLDINGS
      • unit tests coverage

      Additional info: 

      only hyphens '-' can be used to separate words or path parameters for readability (no spaces or underscores)
      underscores '_' or camelCase can be used to separate words in query parameter names but not as part of the base URI
      

        TestRail: Results

          Attachments

          1. invalid path.jpg
            invalid path.jpg
            70 kB
          2. marc-bib.jpg
            marc-bib.jpg
            109 kB
          3. marc-holdings.jpg
            marc-holdings.jpg
            84 kB

            Issue Links

              Activity

                People

                Assignee:
                Daos Serhii Zdorenko
                Reporter:
                Natalia Zaitseva Natalia Zaitseva
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases