| @@ 81-93 (lines=13) @@ | ||
| 78 | * @param \SS_HTTPRequest $request |
|
| 79 | * @return \SS_HTTPResponse |
|
| 80 | */ |
|
| 81 | public function history(SS_HTTPRequest $request) { |
|
| 82 | $data = []; |
|
| 83 | ||
| 84 | $list = $this->environment->DeployHistory('DeployStarted'); |
|
| 85 | ||
| 86 | foreach ($list as $deployment) { |
|
| 87 | $data[] = $this->getDeploymentData($deployment); |
|
| 88 | } |
|
| 89 | ||
| 90 | return $this->getAPIResponse([ |
|
| 91 | 'list' => $data, |
|
| 92 | ], 200); |
|
| 93 | } |
|
| 94 | ||
| 95 | /** |
|
| 96 | * @param \SS_HTTPRequest $request |
|
| @@ 99-108 (lines=10) @@ | ||
| 96 | * @param \SS_HTTPRequest $request |
|
| 97 | * @return \SS_HTTPResponse |
|
| 98 | */ |
|
| 99 | public function upcoming(SS_HTTPRequest $request) { |
|
| 100 | $data = []; |
|
| 101 | $list = $this->environment->UpcomingDeployments(); |
|
| 102 | foreach ($list as $deployment) { |
|
| 103 | $data[] = $this->getDeploymentData($deployment); |
|
| 104 | } |
|
| 105 | return $this->getAPIResponse([ |
|
| 106 | 'list' => $data, |
|
| 107 | ], 200); |
|
| 108 | } |
|
| 109 | ||
| 110 | /** |
|
| 111 | * @param \SS_HTTPRequest $request |
|