Wiki source code of Environment endpoints
Version 1.2 by Outhman Moustaghfir on 2021/11/22 12:39
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | = Introduction : = |
2 | |||
3 | This section will describe in detail how to manage the Environment entity. | ||
4 | |||
5 | = Endpoints : = | ||
6 | |||
![]() |
1.2 | 7 | |(% style="width:294px" %)**URL [method]**|(% style="width:539px" %)**Description**|(% style="width:322px" %)**Input example**|(% style="width:495px" %)**Output example** |
8 | |(% style="width:294px" %)/rest/environments [GET]|(% style="width:539px" %)Get a list that contains the current environment and its sub-environments |(% style="width:322px" %)(no input required)|(% style="width:495px" %){{code language="JSON"}}{ | ||
9 | "timestamp": 1637580872193, | ||
10 | "status": "200", | ||
11 | "data": [ | ||
12 | { | ||
13 | "envid": 20, | ||
14 | "parent": 19, | ||
15 | "alias": "TestEnv1", | ||
16 | "code": "", | ||
17 | "sendurl": false, | ||
18 | "active": true, | ||
19 | "timezone": "GMT", | ||
20 | "gitRepository": "" | ||
21 | }, | ||
22 | { | ||
23 | "envid": 19, | ||
24 | "parent": 1, | ||
25 | "alias": "greatEnv", | ||
26 | "code": "122", | ||
27 | "sendurl": false, | ||
28 | "active": true, | ||
29 | "timezone": "GMT", | ||
30 | "gitRepository": "" | ||
31 | }, | ||
32 | { | ||
33 | "envid": 1, | ||
34 | "parent": 1, | ||
35 | "alias": "iXPath", | ||
36 | "code": "", | ||
37 | "sendurl": false, | ||
38 | "active": true, | ||
39 | "timezone": "Europe/Paris", | ||
40 | "gitRepository": "" | ||
41 | }, | ||
42 | { | ||
43 | "envid": 25, | ||
44 | "parent": 1, | ||
45 | "alias": "PAR", | ||
46 | "code": "", | ||
47 | "sendurl": false, | ||
48 | "active": true, | ||
49 | "timezone": "GMT", | ||
50 | "gitRepository": "" | ||
51 | }, | ||
52 | { | ||
53 | "envid": 26, | ||
54 | "parent": 25, | ||
55 | "alias": "PARR", | ||
56 | "code": "", | ||
57 | "sendurl": false, | ||
58 | "active": true, | ||
59 | "timezone": "GMT", | ||
60 | "gitRepository": "" | ||
61 | } | ||
62 | ] | ||
63 | }{{/code}} | ||
64 | |(% style="width:294px" %) |(% style="width:539px" %) |(% style="width:322px" %) |(% style="width:495px" %) | ||
65 | |(% style="width:294px" %) |(% style="width:539px" %) |(% style="width:322px" %) |(% style="width:495px" %) | ||
66 | |(% style="width:294px" %) |(% style="width:539px" %) |(% style="width:322px" %) |(% style="width:495px" %) | ||
67 | |(% style="width:294px" %) |(% style="width:539px" %) |(% style="width:322px" %) |(% style="width:495px" %) | ||
68 | |(% style="width:294px" %) |(% style="width:539px" %) |(% style="width:322px" %) |(% style="width:495px" %) | ||
69 | |(% style="width:294px" %) |(% style="width:539px" %) |(% style="width:322px" %) |(% style="width:495px" %) | ||
![]() |
1.1 | 70 | |
71 | |||
72 | |||
73 |