Skip to content

Commit

Permalink
feat(open-api): add rest api version endpoint
Browse files Browse the repository at this point in the history
Related to CAM-11538, PR camunda#716
  • Loading branch information
koevskinikola authored and yanavasileva committed Mar 13, 2020
1 parent 1a6fd6a commit 0a05cb6
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
5 changes: 3 additions & 2 deletions engine-rest/engine-rest-openapi/src/main/templates/main.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@

],
"tags": [
{"name": "Process instance"},
{"name": "Deployment"},
{"name": "Engine"}
{"name": "Engine"},
{"name": "Process instance"},
{"name": "Version"}
],
"paths": {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"type" : "object",
"properties" : {

<@lib.property
name = "version"
type = "string"
last = true
desc = "The version of the Rest API." />

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
<@lib.endpointInfo
id = "getRestAPIVersion"
tag = "Version"
desc = "Retrieves the version of the Rest API." />

"responses" : {
<@lib.response
code = "200"
dto = "VersionDto"
last = true
desc = "Request successful."
examples = ['"example-1": {
"summary": "Status 200 Response",
"description": "The Response content of a status 200",
"value": {
"version": "7.13.0"
}
}'] />
}
}

0 comments on commit 0a05cb6

Please sign in to comment.