Changes for page Environment endpoints
Last modified by Outhman Moustaghfir on 2022/06/13 13:17
<
>
edited by Outhman Moustaghfir
on 2021/11/22 15:35
on 2021/11/22 15:35
edited by Outhman Moustaghfir
on 2021/11/22 15:49
on 2021/11/22 15:49
Change comment:
(Autosaved)
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -154,8 +154,39 @@ 154 154 "gitRepository": null 155 155 } 156 156 }{{/code}} 157 -|(% style="width:294px" %)/rest/environments/parents/{id}|(% style="width:539px" %)Get the ascendant hierarchy of a certain environment by id.|(% style="width:322px" %)The {id} bracket should be replaced by the environment's ID|(% style="width:495px" %)suppose that we have an env with id 27 157 +|(% style="width:294px" %)/rest/environments/parents/{id}|(% style="width:539px" %)Get the ascendant hierarchy of a certain environment by id.|(% style="width:322px" %)The {id} bracket should be replaced by the environment's ID|(% style="width:495px" %)((( 158 +suppose that we have an env with EnvID=27, and its parent is an env with EnvID = 26, the returned response will look like below : 158 158 160 + {{code language="json"}}{ 161 + "timestamp": 1637591546553, 162 + "status": "200", 163 + "data": [ 164 + { 165 + "envid": 26, 166 + "parent": 25, 167 + "alias": "PARR", 168 + "code": "", 169 + "sendurl": false, 170 + "active": true, 171 + "timezone": "GMT", 172 + "gitRepository": "" 173 + }, 174 + { 175 + "envid": 25, 176 + "parent": 1, 177 + "alias": "PAR", 178 + "code": "", 179 + "sendurl": false, 180 + "active": true, 181 + "timezone": "GMT", 182 + "gitRepository": "" 183 + } 184 + ] 185 +}{{/code}} 159 159 187 + 188 +))) 160 160 190 + 191 + 161 161