The gitlog command is used to retrieve the Git logs of a specific branch.

JSON Input Data Format
{
    "id": string,
    "branch": string
}
id * Specifies the ID of the repository.
branch * Specifies the name of the branch.
* Indicates a mandatory field.

Code Snippets
Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.


Successful Response
{
    "result": "OK",
    "payload": "################################################################################\ncommit 8619f187839d980f24cca4aa48f6e2974ed8b4df\nAuthor: system \nDate:   Mon Aug 19 16:54:32 2024 +0000\n\nSaved File: myfile.txt\n\n################################################################################\ncommit 46adcd0de063b111033fc957a6651c1a03f6cd51\nAuthor: system \nDate:   Mon Aug 19 16:51:40 2024 +0000\n\nSaved File: myfile.txt\n\n################################################################################\ncommit 00cee5967c45c40d54400081c97aa33d2d00f404\nAuthor: system \nDate:   Mon Aug 19 16:51:30 2024 +0000\n\nNew File: myfile.txt\n\n################################################################################\ncommit d26da33848ad39e25343ce5b05a3bbcb1bcadd59\nAuthor: system \nDate:   Mon Aug 19 10:13:46 2024 +0000\n\nrepository mytest.repo was created"
}

Failed Response
{
    "result": "ERR",
    "message": "Error message ..."
}