I have been trying to get repository tree file records and their latest update time using such a API requests
Firstly get all files for the tree
;page=1&per_page=100
API CALL RESPONSE IMAGE
Afterward get latest update time for each file
=.gitignore&per_page=1
API CALL RESPONSE IMAGE
Is it possible somehow to call just one api request to get the data to keep it more efficient?
I supposed that it is possible using graphql but not find the way for now? Thanks in advance
I have been trying to get repository tree file records and their latest update time using such a API requests
Firstly get all files for the tree
https://gitlab.com/api/v4/projects/66677391/repository/tree?ref=8af436d5abd261d32919d6525dbad617f7207bcc&page=1&per_page=100
API CALL RESPONSE IMAGE
Afterward get latest update time for each file
https://gitlab.com/api/v4/projects/66677391/repository/commits?path=.gitignore&per_page=1
API CALL RESPONSE IMAGE
Is it possible somehow to call just one api request to get the data to keep it more efficient?
I supposed that it is possible using graphql but not find the way for now? Thanks in advance
No. The Gitlab GraphQL API does not include commits on Blobs (the files of a Tree), so you cannot do this in one call.
Also, please don't post images of data. Why should I not upload images of code/data/errors?