summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToon Claes <toon@iotcl.com>2018-01-23 10:50:10 +0100
committerToon Claes <toon@gitlab.com>2018-01-24 09:42:04 +0100
commitd38faa30ed6fb79964b25fce843cb57db1bdb198 (patch)
tree5ff6f019fae8c74d159cd83ae4f86e8050115d89
parent81bbcfacb0adfa32b15b044bfb997aca7bed69fb (diff)
downloadgitlab-ce-d38faa30ed6fb79964b25fce843cb57db1bdb198.tar.gz
Add documentation about when the application API was added
-rw-r--r--doc/api/applications.md6
-rw-r--r--lib/api/applications.rb1
2 files changed, 6 insertions, 1 deletions
diff --git a/doc/api/applications.md b/doc/api/applications.md
index 637e52f2b57..933867ed0bb 100644
--- a/doc/api/applications.md
+++ b/doc/api/applications.md
@@ -1,5 +1,9 @@
# Applications API
+> [Introduced][ce-8160] in GitLab 10.5
+
+[ce-8160]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8160
+
## Create a application
Create a application by posting a JSON payload.
@@ -25,7 +29,7 @@ curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" --data "name=
Example response:
```json
-{
+{
"application_id": "5832fc6e14300a0d962240a8144466eef4ee93ef0d218477e55f11cf12fc3737",
"secret": "ee1dd64b6adc89cf7e2c23099301ccc2c61b441064e9324d963c46902a85ec34",
"callback_url": "http://redirect.uri"
diff --git a/lib/api/applications.rb b/lib/api/applications.rb
index 063f8efab97..142ba73a53d 100644
--- a/lib/api/applications.rb
+++ b/lib/api/applications.rb
@@ -5,6 +5,7 @@ module API
resource :applications do
desc 'Create a new application' do
+ detail 'This feature was introduced in GitLab 10.5'
success Entities::Application
end
params do