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
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/gitops/repo/file/preview
- Auth
- API key in header X-API-KEY
- or API key in header Authorization
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
Changes
No recorded changes to this operation across all 21 revisions of this API.