module Gitlab::Client::RepositoryFiles
def file_contents(project, filepath, ref = 'master')
-
(String)
-
Parameters:
-
ref
(String
) -- The name of a repository branch or tag or if not given the default branch. -
filepath
(String
) -- The relative path of the file in the repository -
project
(Integer, String
) -- The ID or name of a project.
def file_contents(project, filepath, ref = 'master') get "/projects/#{url_encode project}/repository/files/#{url_encode filepath}/raw", query: { ref: ref }, format: nil, headers: { Accept: 'text/plain' }, parser: ::Gitlab::Request::Parser end