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/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/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
- Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Bot Commented Feb 4 at 2:19
1 Answer
Reset to default 0No. 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?