<
From version < 7.2 >
edited by Achraf El Kari
on 2021/11/23 11:34
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,14 +8,8 @@
8 8  
9 9  = Endpoints =
10 10  
11 -|(% style="width:166px" %)**URL [method]**|(% style="width:238px" %)**Description**|(% style="width:599px" %)**Input example**|(% style="width:449px" %)**Output example**
12 -|(% style="width:166px" %)(((
13 -/rest/trackingType [GET]
14 -
15 -
16 -hedear : Authorization + env => Mandatory
17 -\\PS : If the env does not exist on the header, you got an error 400 (bad params)
18 -)))|(% style="width:238px" %)get all tracking Type of the giving environment|(% 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"}}{
19 19   "timestamp": 1620216790744,
20 20   "status": "200",
21 21   "data": [
... ... @@ -29,7 +29,7 @@
29 29   }
30 30   ]
31 31  }{{/code}}
32 -|(% 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"}}{
33 33   "timestamp": 1620217014704,
34 34   "status": "200",
35 35   "data": [
... ... @@ -49,7 +49,7 @@
49 49   }
50 50   ]
51 51  }{{/code}}
52 -|(% 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"}}{
53 53  "files":
54 54  [
55 55  {"fileName" : "newFile.xml"},
... ... @@ -71,13 +71,13 @@
71 71  /rest/git/switchComit/{id}
72 72  
73 73  [GET]
74 -)))|(% style="width:238px" %)(((
68 +)))|(% style="width:189px" %)(((
75 75  switch to a certain version and return the history of all commits.
76 76  
77 77  **__NB __**: if there are some modified files in the current version, these files will be moved to a new directory called :
78 78  
79 79  .../archive/git-{timestamp}
80 -)))|(% style="width:599px" %)(((
74 +)))|(% style="width:383px" %)(((
81 81  the {id} in the URL should be replaced by the id of the wanted commit.
82 82  
83 83  eg :
... ... @@ -109,9 +109,9 @@
109 109  }
110 110  {{/code}}
111 111  )))
112 -|(% style="width:166px" %)/rest/git/update [GET]|(% style="width:238px" %)(((
106 +|(% style="width:166px" %)/rest/git/update [GET]|(% style="width:189px" %)(((
113 113  Integrates and pulls changes from a remote repository into the current branch.
114 -)))|(% style="width:599px" %)(no input required)|(% style="width:449px" %)(((
108 +)))|(% style="width:383px" %)(no input required)|(% style="width:449px" %)(((
115 115  it returns a success message.
116 116  
117 117  eg :
... ... @@ -124,13 +124,13 @@
124 124  }
125 125  {{/code}}
126 126  )))
127 -|(% style="width:166px" %)/rest/environment/init [POST]|(% style="width:238px" %)(((
121 +|(% style="width:166px" %)/rest/environment/init [POST]|(% style="width:189px" %)(((
128 128  Clone a git repository into the directory of the current environment,
129 129  
130 130  if it doesn't exist it creates a new directory and initialize the repo,
131 131  
132 132  if the directory exists, the endpoint renames the directory and creates a new one and clones the repository.
133 -)))|(% style="width:599px" %)(no input required)|(% style="width:449px" %)(((
127 +)))|(% style="width:383px" %)(no input required)|(% style="width:449px" %)(((
134 134  it returns a "success" message :
135 135  
136 136  eg :
... ... @@ -143,7 +143,7 @@
143 143  }
144 144  {{/code}}
145 145  )))
146 -|(% 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" %)(((
147 147  the {branch} must be replaced by the name of the branch destination.
148 148  
149 149  eg : /rest/git/checkout/master
... ... @@ -166,7 +166,7 @@
166 166  /rest/git/newbranch/{branch}
167 167  
168 168  [POST]
169 -)))|(% 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" %)(((
170 170  the {branch} must be replaced by the name of the branch destination.
171 171  
172 172  eg :
... ... @@ -185,7 +185,7 @@
185 185  }
186 186  {{/code}}
187 187  )))
188 -|(% 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"}}{
189 189  "files":
190 190  [
191 191  {"fileName" : "newFile.xml"},
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian