gitops
preview the content of target file in the git repository
Retrieve the compose file content based on git repository configuration Access policy: authenticated
post/gitops/repo/file/preview
Request body
Example request
{
"password": "myGitPassword",
"reference": "refs/heads/master",
"repository": "https://github.com/openfaas/faas",
"sourceID": 1,
"targetFile": "docker-compose.yml",
"username": "myGitUsername"
}Response
Success