Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DBRepo
Manage
Activity
Members
Labels
Plan
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FAIR Data Austria DB Repository
DBRepo
Commits
a3fa8eca
Commit
a3fa8eca
authored
3 years ago
by
Cornelia Michlits
Browse files
Options
Downloads
Patches
Plain Diff
#104 ontology - change routing path starting with api
parent
4cd1b6e5
No related branches found
No related tags found
4 merge requests
!81
New stable release
,
!43
Merge dev to master
,
!33
Draft: merge dev to master
,
!32
Add units-service to dev
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
fda-units-service/app.py
+2
-2
2 additions, 2 deletions
fda-units-service/app.py
with
2 additions
and
2 deletions
fda-units-service/app.py
+
2
−
2
View file @
a3fa8eca
...
@@ -33,7 +33,7 @@ template = dict(
...
@@ -33,7 +33,7 @@ template = dict(
app
.
json_encoder
=
LazyJSONEncoder
app
.
json_encoder
=
LazyJSONEncoder
swagger
=
Swagger
(
app
,
config
=
swagger_config
,
template
=
template
)
swagger
=
Swagger
(
app
,
config
=
swagger_config
,
template
=
template
)
@app.route
(
'
/units/suggest
'
,
methods
=
[
"
POST
"
],
endpoint
=
'
suggest
'
)
@app.route
(
'
/
api/
units/suggest
'
,
methods
=
[
"
POST
"
],
endpoint
=
'
suggest
'
)
@swag_from
(
'
suggest.yml
'
)
@swag_from
(
'
suggest.yml
'
)
def
suggest
():
def
suggest
():
input_json
=
request
.
get_json
()
input_json
=
request
.
get_json
()
...
@@ -48,7 +48,7 @@ def suggest():
...
@@ -48,7 +48,7 @@ def suggest():
res
=
{
"
success
"
:
False
,
"
message
"
:
"
Unknown error
"
+
str
(
e
)
+
unit
}
res
=
{
"
success
"
:
False
,
"
message
"
:
"
Unknown error
"
+
str
(
e
)
+
unit
}
return
jsonify
(
res
)
return
jsonify
(
res
)
@app.route
(
'
/units/validate
'
,
methods
=
[
"
POST
"
],
endpoint
=
'
validate
'
)
@app.route
(
'
/
api/
units/validate
'
,
methods
=
[
"
POST
"
],
endpoint
=
'
validate
'
)
@swag_from
(
'
validate.yml
'
)
@swag_from
(
'
validate.yml
'
)
def
suggest
():
def
suggest
():
input_json
=
request
.
get_json
()
input_json
=
request
.
get_json
()
...
...
This diff is collapsed.
Click to expand it.
Cornelia Michlits
@cornelia.michlits
mentioned in commit
92d380ed
·
3 years ago
mentioned in commit
92d380ed
mentioned in commit 92d380edd8ff2e4a36cecb567925fde32e8956c3
Toggle commit list
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