Queries on Item table in database and its REST API v6

104 views
Skip to first unread message

akshay ts

unread,
Mar 12, 2024, 8:15:21 AM3/12/24
to DSpace Technical Support
Hi team,

We are in the process of upgrading dspace from version 5 to 7.6.1.

I have a few queries as listed below.

1. In dspace 7.6.1, each item has an identifier called UUID and in the database, item table we have the item_id column which is id of the items from the dspace 5 or older. This is referred as legacy_id in dspace7 backend rest code.
Is my understanding  correct?

2. So, when an item is created in dspace 7.6.1, the 'item_id' column in item table in the database will remain null. Is my understanding  correct?

3. In dspace 7.6.1, we are currently using dspace REST API v6 (deprecated) to integrate an application with Dspace. So, the rest call "POST /items/find-by-metadata-field " response doesn't have the name-value pair "id":"Integer id" any more as in Dspace 5 instead we have uuid.
Is my understanding correct?

4. Even though REST API v6 (deprecated)is used, will the "GET /rest/status" returns <apiVersion> to be "7".
Is my understanding correct?

Can anyone please help me with my understanding which will be very helpful?

Thanks and Regards,
Akshay Karthik Thana Sekar

DSpace Technical Support

unread,
Mar 28, 2024, 5:17:26 PM3/28/24
to DSpace Technical Support
Answered briefly inline below:
  1. In dspace 7.6.1, each item has an identifier called UUID and in the database, item table we have the item_id column which is id of the items from the dspace 5 or older. This is referred as legacy_id in dspace7 backend rest code.Is my understanding  correct?
    • This change occurred in DSpace 6.  As of DSpace 6, all objects have UUIDs instead of "id" columns.  Your understanding is correct.
  1. So, when an item is created in dspace 7.6.1, the 'item_id' column in item table in the database will remain null. Is my understanding  correct?
    • Yes, again as of DSpace 6 all objects have UUIDs.  The old "item_id" column should be empty for new items (old ones may still have values).  Eventually this column should be dropped.
  1.  In dspace 7.6.1, we are currently using dspace REST API v6 (deprecated) to integrate an application with Dspace. So, the rest call "POST /items/find-by-metadata-field " response doesn't have the name-value pair "id":"Integer id" any more as in Dspace 5 instead we have uuid.
    • I believe this is correct but am not well versed in the older REST API (v6).  Essentially though, as of DSpace 6 all objects are identified by UUID instead of "id" fields
  1.  Even though REST API v6 (deprecated)is used, will the "GET /rest/status" returns <apiVersion> to be "7".
    • Yes, this is correct because the system itself is running version 7. 

Please also keep in mind that the REST API v6 will be removed in DSpace 8.  You should work to migrate to the new REST API at some point.
Tim

akshay ts

unread,
May 7, 2024, 3:19:16 AM5/7/24
to DSpace Technical Support
Thanks for the explanation Tim. Everything makes sense to me now. Sorry for the late reply.
Reply all
Reply to author
Forward
0 new messages