Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-10-12 14:32:48 +0300
committerRobert Schilling <rschilling@student.tugraz.at>2016-10-12 17:47:35 +0300
commitb998479c81512b7c9a2cff28e7aabff3c4be0424 (patch)
treebb6ad3e585b1096f804dc354eebabb68bf93b9ec /doc/api/version.md
parent7c07c07d7a2b93ab81964b9cd28736652da1370a (diff)
API: Version information
Diffstat (limited to 'doc/api/version.md')
-rw-r--r--doc/api/version.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/api/version.md b/doc/api/version.md
new file mode 100644
index 00000000000..287d17cf97f
--- /dev/null
+++ b/doc/api/version.md
@@ -0,0 +1,23 @@
+# Version API
+
+>**Note:** This feature was introduced in GitLab 8.13
+
+Retrieve version information for this GitLab instance. Responds `200 OK` for
+authenticated users.
+
+```
+GET /version
+```
+
+```bash
+curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/version
+```
+
+Example response:
+
+```json
+{
+ "version": "8.13.0-pre",
+ "revision": "4e963fe"
+}
+```