admin管理员组文章数量:1306140
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?
本文标签: optimizationGet repositorytree files names with latest update time efficientlyStack Overflow
版权声明:本文标题:optimization - Get repositorytree files names with latest update time efficiently - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741811577a2398828.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论