<
From version < 1.4 >
edited by Outhman Moustaghfir
on 2021/11/22 14:46
To version < 1.9 >
edited by Outhman Moustaghfir
on 2021/11/22 15:35
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -121,14 +121,41 @@
121 121  }
122 122  {{/code}}
123 123  )))
124 -|(% style="width:294px" %)/rest/environments/folder/{alias} [GET]|(% style="width:539px" %)Create all folders needed for the environment. |(% style="width:322px" %)The {alias} bracket should be replaced by the environment's alias.|(% style="width:495px" %){{code language="JSON"}} {
124 +|(% style="width:294px" %)/rest/environments/folder/{alias} [GET]|(% style="width:539px" %)__Create__ all folders needed for the environment. |(% style="width:322px" %)The {alias} bracket should be replaced by the environment's alias.|(% style="width:495px" %){{code language="JSON"}} {
125 125   "timestamp": 1637587991054,
126 126   "status": "200",
127 127   "data": "OK"
128 128   }{{/code}}
129 -|(% style="width:294px" %) |(% style="width:539px" %) |(% style="width:322px" %) |(% style="width:495px" %)
130 -|(% style="width:294px" %) |(% style="width:539px" %) |(% style="width:322px" %) |(% style="width:495px" %)
129 +|(% style="width:294px" %)/rest/environments [POST]|(% style="width:539px" %)__Create__ a new environment in the database|(% style="width:322px" %){{code language="json"}} {
130 + "alias" : "eud",
131 + "parent" : 1,
132 + "active" : true,
133 + "code" : "ADE",
134 + "sendurl" : true,
135 + "timezone" : "GMT",
136 + "gitRepository" : null
137 + }{{/code}}(((
138 +
131 131  
140 +NB: **"alias"**, **"parent"** and **"active" **are mandatory fields.
132 132  
142 +
143 +)))|(% style="width:495px" %){{code language="json"}}{
144 + "timestamp": 1637590549094,
145 + "status": "200",
146 + "data": {
147 + "envid": 37,
148 + "parent": 1,
149 + "alias": "eud",
150 + "code": "ADE",
151 + "sendurl": true,
152 + "active": true,
153 + "timezone": "GMT",
154 + "gitRepository": null
155 + }
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
133 133  
159 +
160 +
134 134  
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian