Resources
Git
Manage git repositories
Get zipped repository content
GET /git/repositories/{code}
Upload a repository
PUT /git/repositories/{code}
Update an existing repository
POST /git/repositories/{code}
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Body |
body |
Repository information |
|
Path |
code |
Code of the repository |
string |
Push the commit to remote origin
POST /git/repositories/{code}/push
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
code |
Code of the repository |
string |
FormData |
username |
Username to use during push |
string |
FormData |
password |
Password to use during push |
string |
List all existing repositories
GET /git/repositories
Responses
HTTP Code | Description | Schema |
---|---|---|
200 |
successful operation |
< GitRepositoryDto > array |
Upload a new repository
POST /git/repositories
Merge one branch into another
POST /git/repositories/{code}/branches/merge
Commit content of a repository
POST /git/repositories/{code}/commit
Create a branch
POST /git/repositories/{code}/branches/{branch}
Delete a branch
DELETE /git/repositories/{code}/branches/{branch}
Checkout a branch
POST /git/repositories/{code}/branches/{branch}/checkout
Pull changes from remote origin
POST /git/repositories/{code}/pull
Parameters
Type | Name | Description | Schema |
---|---|---|---|
Path |
code |
Code of the repository |
string |
FormData |
username |
Username to use during pull |
string |
FormData |
password |
Password to use during pull |
string |
Definitions
GitRepositoryDto
Name | Schema |
---|---|
active |
boolean |
code |
string |
description |
string |
updatedCode |
string |
readingRoles |
< string > array |
writingRoles |
< string > array |
remoteOrigin |
string |
remoteUsername |
string |
remotePassword |
string |
meveoRepository |
boolean |
currentBranch |
string |
branches |
< string > array |
remote |
boolean |
GitRepositoryUploadForm
Name | Description | Schema |
---|---|---|
data |
Zipped repository content |
|
repository |
Repository information |
PagingAndFiltering
Name | Schema |
---|---|
fullTextFilter |
string |
filters |
< string, object > map |
fields |
string |
offset |
integer (int32) |
limit |
integer (int32) |
sortBy |
string |
sortOrder |
enum (ASCENDING, DESCENDING) |
totalNumberOfRecords |
integer (int32) |