<
From version < 8.1 >
edited by Achraf El Kari
on 2021/11/23 11:46
To version < 7.1 >
edited by Achraf El Kari
on 2021/11/23 09:57
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -8,21 +8,8 @@
8 8  
9 9  = Endpoints =
10 10  
11 -**PS :** __//For all those endpoints, the env params is andatory on the header, otherwise you got an error 400 (BAD PARAMS).//__
12 -
13 -
14 -|(% style="width:166px" %)**URL [method]**|(% style="width:238px" %)**Description**|(% style="width:599px" %)**Input example**|(% style="width:449px" %)**Output example**
15 -|(% style="width:166px" %)(((
16 -/rest/trackingType [GET]
17 -
18 -
19 -hedear : Authorization + env => Mandatory
20 -
21 -)))|(% style="width:238px" %)(((
22 -get **all **tracking Type of the giving environment ==>
23 -
24 -order, orderLine...
25 -)))|(% style="width:599px" %)(no input required)|(% style="width:449px" %){{code language="JSON"}}{
11 +|(% style="width:166px" %)**URL [method]**|(% style="width:189px" %)**Description**|(% style="width:383px" %)**Input example**|(% style="width:449px" %)**Output example**
12 +|(% style="width:166px" %)/rest/git/getstatus [GET]|(% style="width:189px" %)get all files that have been modified or untracked|(% style="width:383px" %)(no input required)|(% style="width:449px" %){{code language="JSON"}}{
26 26   "timestamp": 1620216790744,
27 27   "status": "200",
28 28   "data": [
... ... @@ -36,7 +36,7 @@
36 36   }
37 37   ]
38 38  }{{/code}}
39 -|(% style="width:166px" %)/rest/git/history [GET]|(% style="width:238px" %)get all commits history, with their IDs ,authors ,messages, dates and if considired as current version or not |(% style="width:599px" %)(no input required)|(% style="width:449px" %){{code language="JSON"}}{
26 +|(% style="width:166px" %)/rest/git/history [GET]|(% style="width:189px" %)get all commits history, with their IDs ,authors ,messages, dates and if considired as current version or not |(% style="width:383px" %)(no input required)|(% style="width:449px" %){{code language="JSON"}}{
40 40   "timestamp": 1620217014704,
41 41   "status": "200",
42 42   "data": [
... ... @@ -56,7 +56,7 @@
56 56   }
57 57   ]
58 58  }{{/code}}
59 -|(% style="width:166px" %)/rest/git/commit [POST]|(% style="width:238px" %)commit changes in files with a message|(% style="width:599px" %){{code language="JSON"}}{
46 +|(% style="width:166px" %)/rest/git/commit [POST]|(% style="width:189px" %)commit changes in files with a message|(% style="width:383px" %){{code language="JSON"}}{
60 60  "files":
61 61  [
62 62  {"fileName" : "newFile.xml"},
... ... @@ -78,13 +78,13 @@
78 78  /rest/git/switchComit/{id}
79 79  
80 80  [GET]
81 -)))|(% style="width:238px" %)(((
68 +)))|(% style="width:189px" %)(((
82 82  switch to a certain version and return the history of all commits.
83 83  
84 84  **__NB __**: if there are some modified files in the current version, these files will be moved to a new directory called :
85 85  
86 86  .../archive/git-{timestamp}
87 -)))|(% style="width:599px" %)(((
74 +)))|(% style="width:383px" %)(((
88 88  the {id} in the URL should be replaced by the id of the wanted commit.
89 89  
90 90  eg :
... ... @@ -116,9 +116,9 @@
116 116  }
117 117  {{/code}}
118 118  )))
119 -|(% style="width:166px" %)/rest/git/update [GET]|(% style="width:238px" %)(((
106 +|(% style="width:166px" %)/rest/git/update [GET]|(% style="width:189px" %)(((
120 120  Integrates and pulls changes from a remote repository into the current branch.
121 -)))|(% style="width:599px" %)(no input required)|(% style="width:449px" %)(((
108 +)))|(% style="width:383px" %)(no input required)|(% style="width:449px" %)(((
122 122  it returns a success message.
123 123  
124 124  eg :
... ... @@ -131,13 +131,13 @@
131 131  }
132 132  {{/code}}
133 133  )))
134 -|(% style="width:166px" %)/rest/environment/init [POST]|(% style="width:238px" %)(((
121 +|(% style="width:166px" %)/rest/environment/init [POST]|(% style="width:189px" %)(((
135 135  Clone a git repository into the directory of the current environment,
136 136  
137 137  if it doesn't exist it creates a new directory and initialize the repo,
138 138  
139 139  if the directory exists, the endpoint renames the directory and creates a new one and clones the repository.
140 -)))|(% style="width:599px" %)(no input required)|(% style="width:449px" %)(((
127 +)))|(% style="width:383px" %)(no input required)|(% style="width:449px" %)(((
141 141  it returns a "success" message :
142 142  
143 143  eg :
... ... @@ -150,7 +150,7 @@
150 150  }
151 151  {{/code}}
152 152  )))
153 -|(% style="width:166px" %)/rest/git/checkout/{branch} [POST]|(% style="width:238px" %)switch to a certain branch|(% style="width:599px" %)(((
140 +|(% style="width:166px" %)/rest/git/checkout/{branch} [POST]|(% style="width:189px" %)switch to a certain branch|(% style="width:383px" %)(((
154 154  the {branch} must be replaced by the name of the branch destination.
155 155  
156 156  eg : /rest/git/checkout/master
... ... @@ -173,7 +173,7 @@
173 173  /rest/git/newbranch/{branch}
174 174  
175 175  [POST]
176 -)))|(% style="width:238px" %)create and switch to a new branch |(% style="width:599px" %)(((
163 +)))|(% style="width:189px" %)create and switch to a new branch |(% style="width:383px" %)(((
177 177  the {branch} must be replaced by the name of the branch destination.
178 178  
179 179  eg :
... ... @@ -192,7 +192,7 @@
192 192  }
193 193  {{/code}}
194 194  )))
195 -|(% style="width:166px" %)/rest/git/revert [POST]|(% style="width:238px" %)switch the modified file to the initial head version. |(% style="width:599px" %){{code language="JSON"}}{
182 +|(% style="width:166px" %)/rest/git/revert [POST]|(% style="width:189px" %)switch the modified file to the initial head version. |(% style="width:383px" %){{code language="JSON"}}{
196 196  "files":
197 197  [
198 198  {"fileName" : "newFile.xml"},
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian