Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Roadmap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robert Goldmann
Roadmap
Commits
cf6edc97
Commit
cf6edc97
authored
6 years ago
by
Robert Goldmann
Browse files
Options
Downloads
Patches
Plain Diff
added route for retrieving server version info; updated docs
parent
a5d0fa08
Branches
Branches containing commit
Tags
v2.20.0
Tags containing commit
No related merge requests found
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
api/RoadmapAPIServer.py
+6
-0
6 additions, 0 deletions
api/RoadmapAPIServer.py
api/docs/api.html
+1
-1
1 addition, 1 deletion
api/docs/api.html
api/docs/api.yml
+34
-0
34 additions, 0 deletions
api/docs/api.yml
api/version.json
+7
-0
7 additions, 0 deletions
api/version.json
with
48 additions
and
1 deletion
api/RoadmapAPIServer.py
+
6
−
0
View file @
cf6edc97
...
...
@@ -31,6 +31,12 @@ def index():
return
send_from_directory
(
"
docs
"
,
"
api.html
"
)
@app.route
(
'
/version
'
,
methods
=
[
'
GET
'
])
def
version
():
with
open
(
"
version.json
"
,
"
r
"
)
as
f
:
return
jsonify
(
json
.
load
(
f
)[
"
version
"
])
@app.route
(
'
/login
'
,
methods
=
[
'
POST
'
])
def
login
():
try
:
...
...
This diff is collapsed.
Click to expand it.
api/docs/api.html
+
1
−
1
View file @
cf6edc97
This diff is collapsed.
Click to expand it.
api/docs/api.yml
+
34
−
0
View file @
cf6edc97
openapi
:
3.0.0
servers
:
# Added by API Auto Mocking Plugin
-
description
:
SwaggerHub API Auto Mocking
url
:
https://virtserver.swaggerhub.com/deadlocker8/RoadmapsAPI/1.0.0
-
description
:
Roadmaps API Server
url
:
https://roadmaps.thecodelabs.de:10000/
info
:
...
...
@@ -13,6 +16,19 @@ tags:
description
:
Operations available to the public
paths
:
/version
:
get
:
tags
:
-
public
summary
:
Gets information about the server version
operationId
:
version
responses
:
'
200'
:
description
:
The server version information
content
:
application/json
:
schema
:
$ref
:
'
#/components/schemas/Version'
/login
:
post
:
tags
:
...
...
@@ -725,6 +741,24 @@ components:
bearerFormat
:
JWT
schemas
:
Version
:
type
:
object
required
:
-
code
-
name
-
date
properties
:
code
:
type
:
integer
example
:
1
name
:
type
:
string
example
:
"
v1.0.0"
date
:
type
:
string
format
:
date
example
:
"
30.05.19"
Credentials
:
type
:
object
required
:
...
...
This diff is collapsed.
Click to expand it.
api/version.json
0 → 100644
+
7
−
0
View file @
cf6edc97
{
"version"
:
{
"name"
:
"v2.1.0"
,
"code"
:
4
,
"date"
:
"08.06.19"
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment