forked from camunda/camunda-bpm-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(open-api): add rest api version endpoint
Related to CAM-11538, PR camunda#716
- Loading branch information
1 parent
1a6fd6a
commit 0a05cb6
Showing
3 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...ine-rest-openapi/src/main/templates/models/org/camunda/bpm/engine/rest/dto/VersionDto.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." /> | ||
|
||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
engine-rest/engine-rest-openapi/src/main/templates/paths/version/get.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
}'] /> | ||
} | ||
} |