Uploaded image for project: 'mod-entities-links'
  1. mod-entities-links
  2. MODELINKS-122

Implement Next Available HRID Endpoint for Authority File

    XMLWordPrintable

Details

    • 2
    • Spitfire
    • Quesnelia (R1 2024)

    Description

      Purpose
      This story involves the implementation of a new endpoint within the Authority-Source-Files API to provide the next available HRID (Human-Readable Identifier) for the authority file. This endpoint will facilitate retrieving the next available HRID in the sequence for authority file creation. HRID should have format: 

       

      POST /authority-source-files/{id}/hrid
      Request body: {}
      Response body:
      {    
        "id": "cb58492d-018e-442d-9ce3-35aabfc524aa",    
        "hrid": "loc1"
      }

       

      Approach

      1. Design and implement a new endpoint dedicated to retrieving the next available HRID.
      2. Develop the underlying logic to generate and return the next HRID based on the sequence.
      3. Only available for files with source: local

      Acceptance criteria

      • Covered by unit tests
      • Module documentation updated
      • Logging is well-defined

      Additional info:

      https://www.postgresql.org/docs/current/sql-createsequence.html

      https://wiki.folio.org/display/FOLIJET/Create+a+MARC+authority+record+via+quickMARC+UI

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                Shans Shans Kaluhin
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:

                  TestRail: Runs

                    TestRail: Cases