class
Forgejo::API
- Forgejo::API
- Reference
- Object
Defined in:
lib/forgejo/api.crConstructors
Instance Method Summary
- #base_url : String
- #client
-
#get_file(owner : String, repo_name : String, file_path : String, ref : String = "main") : String
Get a file from a repository Returns raw file content.
- #logging : Bool
- #logging=(logging : Bool)
- #make_request(url, params = {} of String => String)
- #repo(owner : String, repo_name : String)
-
#repo_languages(owner : String, repo : String) : Hash(String, Int64)
Get languages and number of bytes of code written
=> {"Crystal" => 109927, "HTML" => 36888} - #repo_releases(owner : String, repo : String)
- #repos_search(query : String, topic : Bool = false, sort : String = "created", order : String = "asc", page : Int32 = 1, limit : Int32 = 100)
- #token : String
- #user(username : String)
Constructor Detail
Instance Method Detail
def get_file(owner : String, repo_name : String, file_path : String, ref : String = "main") : String
#
Get a file from a repository Returns raw file content.
def repo_languages(owner : String, repo : String) : Hash(String, Int64)
#
Get languages and number of bytes of code written
=> {"Crystal" => 109927, "HTML" => 36888}
def repos_search(query : String, topic : Bool = false, sort : String = "created", order : String = "asc", page : Int32 = 1, limit : Int32 = 100)
#