1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-05-05 06:58:01 +00:00
gitea/services/repository
Denys Konovalov 9a071a596f
Add API endpoint to request contents of multiple files simultaniously ()
Adds an API POST endpoint under `/repos/{owner}/{repo}/file-contents`
which receives a list of paths and returns a list of the contents of
these files.

This API endpoint will be helpful for applications like headless CMS
(reference: https://github.com/sveltia/sveltia-cms/issues/198) which
need to retrieve a large number of files by reducing the amount of
needed API calls.

Close 

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-04-22 01:20:11 +08:00
..
archiver Enable addtional linters () 2025-04-01 10:14:01 +00:00
commitstatus Add new event commit status creation and webhook implementation () 2024-11-07 06:41:49 +00:00
files Add API endpoint to request contents of multiple files simultaniously () 2025-04-22 01:20:11 +08:00
gitgraph Remove context from git struct () 2025-03-04 11:56:11 -08:00
adopt_test.go Rework create/fork/adopt/generate repository to make sure resources will be cleanup once failed () 2025-04-07 22:12:54 -07:00
adopt.go Move and rename UpdateRepository () 2025-04-12 18:22:18 +00:00
avatar_test.go Enable testifylint rules () 2025-03-31 01:53:48 -04:00
avatar.go Fix repo avatar conflict () 2024-12-23 02:52:25 +00:00
branch.go Enable addtional linters () 2025-04-01 10:14:01 +00:00
cache.go
check.go Remove context from git struct () 2025-03-04 11:56:11 -08:00
collaboration_test.go Move AddCollabrator and CreateRepositoryByExample to service layer () 2024-11-07 11:28:11 +08:00
collaboration.go Move team related functions to service layer () 2024-11-27 21:12:26 +00:00
commit.go
contributors_graph_test.go Enable testifylint rules () 2025-03-31 01:53:48 -04:00
contributors_graph.go Remove context from git struct () 2025-03-04 11:56:11 -08:00
create_test.go Fix bug when migrating repository () 2025-04-14 04:48:03 +00:00
create.go Fix bug when migrating repository () 2025-04-14 04:48:03 +00:00
delete_test.go
delete.go Rework create/fork/adopt/generate repository to make sure resources will be cleanup once failed () 2025-04-07 22:12:54 -07:00
fork_test.go Rework create/fork/adopt/generate repository to make sure resources will be cleanup once failed () 2025-04-07 22:12:54 -07:00
fork.go Move and rename UpdateRepository () 2025-04-12 18:22:18 +00:00
generate_test.go
generate.go Uniform all temporary directories and allow customizing temp path () 2025-04-08 16:15:28 +00:00
hooks.go Don't create duplicated functions for code repositories and wiki repositories () 2025-03-19 11:17:19 -07:00
init.go Remove context from git struct () 2025-03-04 11:56:11 -08:00
lfs_test.go Use test context in tests and new loop system in benchmarks () 2025-02-20 09:57:40 +00:00
lfs.go
license_test.go Enable addtional linters () 2025-04-01 10:14:01 +00:00
license.go Only keep popular licenses () 2025-03-10 06:40:37 +08:00
main_test.go
merge_upstream.go Improve sync fork behavior () 2025-01-20 15:17:47 +08:00
migrate.go Rework create/fork/adopt/generate repository to make sure resources will be cleanup once failed () 2025-04-07 22:12:54 -07:00
push.go Avoid creating unnecessary temporary cat file sub process () 2025-04-04 16:19:19 -07:00
repo_team_test.go Move team related functions to service layer () 2024-11-27 21:12:26 +00:00
repo_team.go Move RepoTransfer from models to models/repo sub package () 2024-12-18 11:44:16 +08:00
repository_test.go Move and rename UpdateRepository () 2025-04-12 18:22:18 +00:00
repository.go Fix bug when migrating repository () 2025-04-14 04:48:03 +00:00
setting.go Fix auto concurrency cancellation skips commit status updates () 2025-03-10 15:58:48 -07:00
template.go Check user/org repo limit instead of doer () 2025-04-07 23:45:31 -07:00
transfer_test.go Check user/org repo limit instead of doer () 2025-04-07 23:45:31 -07:00
transfer.go Check user/org repo limit instead of doer () 2025-04-07 23:45:31 -07:00