-
Notifications
You must be signed in to change notification settings - Fork 4
History Service
bjbbarr edited this page May 3, 2013
·
1 revision
Sending a GET request with the path "/system/history" allows you to pull the history log for the cadmium site. The limit parameter will limit the number of history entries to return and the filter parameter can be either true or false, depending on whether you want to show only revertible history entries or not.
GET /system/history/{limit}/{filter}
< 200
< Content-Type: application/json
[
{
index : "3",
timestamp: "",
branch: "develop",
revision: "c0a4c159486e320bf66859cb694849035fc9efd1",
repoUrl: "[email protected]:company/cadmium-project.git",
timeLive: "2h22m46s528ms",
openId: "githubusername",
servedDirectory: "/content",
revertible: "true",
maintenance: "false",
failed: "false",
finished: "true",
uuid: "12345",
comment: "Comment logged when history item committed",
type : "CONTENT"
},
...
]
Sending a GET request with the path "/system/history/{uuid}" allows you to pull a history entry based on uuid for the cadmium site.
GET /system/history/{uuid}
< 200
< Content-Type: text/plain
true
Sending a GET request with the path "/system/history/{uuid}/{timestamp}" allows you to pull a history entry based on uuid and timestamp.
GET /system/history/{uuid}/{timestamp}
< 200
< Content-Type: text/plain
true