Story: Update API to support genre/Form

Description

Add support for genre/form of work in the API request and response. Create a new object property with name _genreReference within the Work section of the API request and response.

Properties in the object:

  • id: ID of the genre form

  • label: label of the genre form (655$a)

GET API response:

Include both id and label in the response of GET /resource/{id} API

PUT & POST API request

Discard the label property of the request payload. Connect the work to the resource identified by the given id

 

Acceptance criteria:

  • Genre/form of work should be returned in the response of GET /resource/{id} API

  • PUT and POST /resource/id API should accept genre/form in the request payload.

Environment

None

Potential Workaround

None

Attachments

3
  • 27 Mar 2024, 04:32 PM
  • 27 Mar 2024, 04:32 PM
  • 27 Mar 2024, 04:32 PM

Checklist

hide

Activity

Show:

Tetiana Kovalchuk March 27, 2024 at 4:34 PM

Tested on missinglinks env

Build version: #359

Test cases and evidences added.

Askhat Abishev March 27, 2024 at 10:14 AM

GET example payload

{ "resource": { "http://bibfra.me/vocab/lite/Work": { "id": "123", "_genreReference": [ { "id": "201", "label": "Cartoons" }, { "id": "202", "label": "Diaries" } ], // other Work fields } } }

Askhat Abishev March 27, 2024 at 10:11 AM

PUT/POST example payload

{ "resource": { "http://bibfra.me/vocab/lite/Work": { "_genreReference": [ { "id": "201" }, { "id": "202" } ], // other Work fields } } }

Punnoose Kutty Jacob Pullolickal March 26, 2024 at 6:32 PM

Decision made on 03/26 Daily - Genre/Form will be added only to the Work section.

cc:

Askhat Abishev March 26, 2024 at 7:52 AM

should we add it only to Work or to WorkReference too?

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Citation

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created February 29, 2024 at 4:53 PM
Updated March 4, 2025 at 7:23 PM
Resolved April 1, 2024 at 1:47 PM
TestRail: Cases
TestRail: Runs

Flag notifications