Rest API: no children attribute in IndexInstanceNode [SOLVED]

When things don't work as they should.
Post Reply
qra
Posts: 12
Joined: Fri Oct 25, 2019 9:08 pm

Rest API: no children attribute in IndexInstanceNode [SOLVED]

Post by qra »

Hi. Using the Rest Api function I want to create a nodes tree for index instance. But there is no children attribute in the IndexInstanceNode element (e.g. instance_root). How can I determine the list of children nodes.

I checked the functions:

Code: Select all

api/documents/{id}/indexes/		# documents_indexes_list
api/indexes/				# indexes_list
api/indexes/{id}/			# indexes_read
Direct installation, ver. 3.4.16
User avatar
rosarior
Developer
Developer
Posts: 548
Joined: Tue Aug 21, 2018 3:28 am
Location: Puerto Rico
Contact:

Re: Rest API: no children attribute in IndexInstanceNode

Post by rosarior »

Hi,

The API was updated to be match the data exposed by the HTTP views and make a clear differentiation between index templates and index instances. These are addressed by the same commits in the topic 3011 (posting.php?&t=3010)

https://gitlab.com/mayan-edms/mayan-edm ... a9335288cb
https://gitlab.com/mayan-edms/mayan-edm ... a52d496647

Thank you for the reports and the feedback!
Post Reply