diff options
Diffstat (limited to 'doc/api/branches.md')
-rw-r--r-- | doc/api/branches.md | 65 |
1 files changed, 37 insertions, 28 deletions
diff --git a/doc/api/branches.md b/doc/api/branches.md index b925d3ddadf..cd0266a05f1 100644 --- a/doc/api/branches.md +++ b/doc/api/branches.md @@ -50,19 +50,22 @@ Example response: "can_push": true, "web_url": "https://gitlab.example.com/my-group/my-project/-/tree/main", "commit": { - "author_email": "john@example.com", - "author_name": "John Smith", - "authored_date": "2012-06-27T05:51:39-07:00", - "committed_date": "2012-06-28T03:44:20-07:00", - "committer_email": "john@example.com", - "committer_name": "John Smith", "id": "7b5c3cc8be40ee161ae89a06bba6229da1032a0c", "short_id": "7b5c3cc", - "title": "add projects API", - "message": "add projects API", + "created_at": "2012-06-28T03:44:20-07:00", "parent_ids": [ "4ad91d3c1144c406e50c7b33bae684bd6837faf8" - ] + ], + "title": "add projects API", + "message": "add projects API", + "author_name": "John Smith", + "author_email": "john@example.com", + "authored_date": "2012-06-27T05:51:39-07:00", + "committer_name": "John Smith", + "committer_email": "john@example.com", + "committed_date": "2012-06-28T03:44:20-07:00", + "trailers": {}, + "web_url": "https://gitlab.example.com/my-group/my-project/-/commit/7b5c3cc8be40ee161ae89a06bba6229da1032a0c" } }, ... @@ -97,7 +100,7 @@ Example response: ```json { - "name": "master", + "name": "main", "merged": false, "protected": true, "default": true, @@ -106,19 +109,22 @@ Example response: "can_push": true, "web_url": "https://gitlab.example.com/my-group/my-project/-/tree/main", "commit": { - "author_email": "john@example.com", - "author_name": "John Smith", - "authored_date": "2012-06-27T05:51:39-07:00", - "committed_date": "2012-06-28T03:44:20-07:00", - "committer_email": "john@example.com", - "committer_name": "John Smith", "id": "7b5c3cc8be40ee161ae89a06bba6229da1032a0c", "short_id": "7b5c3cc", - "title": "add projects API", - "message": "add projects API", + "created_at": "2012-06-28T03:44:20-07:00", "parent_ids": [ "4ad91d3c1144c406e50c7b33bae684bd6837faf8" - ] + ], + "title": "add projects API", + "message": "add projects API", + "author_name": "John Smith", + "author_email": "john@example.com", + "authored_date": "2012-06-27T05:51:39-07:00", + "committer_name": "John Smith", + "committer_email": "john@example.com", + "committed_date": "2012-06-28T03:44:20-07:00", + "trailers": {}, + "web_url": "https://gitlab.example.com/my-group/my-project/-/commit/7b5c3cc8be40ee161ae89a06bba6229da1032a0c" } } ``` @@ -160,19 +166,22 @@ Example response: ```json { "commit": { - "author_email": "john@example.com", - "author_name": "John Smith", - "authored_date": "2012-06-27T05:51:39-07:00", - "committed_date": "2012-06-28T03:44:20-07:00", - "committer_email": "john@example.com", - "committer_name": "John Smith", "id": "7b5c3cc8be40ee161ae89a06bba6229da1032a0c", "short_id": "7b5c3cc", - "title": "add projects API", - "message": "add projects API", + "created_at": "2012-06-28T03:44:20-07:00", "parent_ids": [ "4ad91d3c1144c406e50c7b33bae684bd6837faf8" - ] + ], + "title": "add projects API", + "message": "add projects API", + "author_name": "John Smith", + "author_email": "john@example.com", + "authored_date": "2012-06-27T05:51:39-07:00", + "committer_name": "John Smith", + "committer_email": "john@example.com", + "committed_date": "2012-06-28T03:44:20-07:00", + "trailers": {}, + "web_url": "https://gitlab.example.com/my-group/my-project/-/commit/7b5c3cc8be40ee161ae89a06bba6229da1032a0c" }, "name": "newbranch", "merged": false, |