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