Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Wellbore
Wellbore Domain Services
Commits
f94bd0e1
Commit
f94bd0e1
authored
Jul 12, 2021
by
Cyril Monmouton
Browse files
v3 WellLog and Trajectory added as ready APIs + hide from swagger alpha APIs
parent
277ca80c
Changes
1
Show whitespace changes
Inline
Side-by-side
app/wdms_app.py
View file @
f94bd0e1
...
@@ -174,7 +174,7 @@ ddms_v3_routes_groups = [
...
@@ -174,7 +174,7 @@ ddms_v3_routes_groups = [
(
wellbore_ddms_v3
,
"Wellbore"
),
(
wellbore_ddms_v3
,
"Wellbore"
),
(
well_ddms_v3
,
"Well"
),
(
well_ddms_v3
,
"Well"
),
(
welllog_ddms_v3
,
"WellLog"
),
(
welllog_ddms_v3
,
"WellLog"
),
(
wellbore_trajectory_ddms_v3
,
"Trajectory"
),
(
wellbore_trajectory_ddms_v3
,
"Trajectory
v3
"
),
(
markerset_ddms_v3
,
"Marker"
),
(
markerset_ddms_v3
,
"Marker"
),
]
]
for
ddms_v3_routes_group
in
ddms_v3_routes_groups
:
for
ddms_v3_routes_group
in
ddms_v3_routes_groups
:
...
@@ -209,31 +209,40 @@ wdms_app.include_router(log_recognition.router, prefix='/log-recognition', tags=
...
@@ -209,31 +209,40 @@ wdms_app.include_router(log_recognition.router, prefix='/log-recognition', tags=
Depends
(
require_opendes_authorized_user
,
use_cache
=
False
)])
Depends
(
require_opendes_authorized_user
,
use_cache
=
False
)])
dependencies
=
[
Depends
(
require_data_partition_id
,
use_cache
=
False
),
alpha_tags
=
[
'ALPHA feature: bulk data chunking'
]
Depends
(
require_opendes_authorized_user
,
use_cache
=
False
)]
for
bulk_prefix
,
bulk_tags
,
is_visible
in
[(
ALPHA_APIS_PREFIX
+
DDMS_V3_PATH
,
alpha_tags
,
False
),
tags
=
[
'ALPHA feature: bulk data chunking'
]
(
DDMS_V3_PATH
,
[],
True
)
]:
# welllog bulk v3 APIs
# welllog bulk v3 APIs
wdms_app
.
include_router
(
wdms_app
.
include_router
(
sessions
.
router
,
sessions
.
router
,
prefix
=
ALPHA_APIS_PREFIX
+
DDMS_V3_PATH
+
welllog_ddms_v3
.
WELL_LOGS_API_BASE_PATH
,
prefix
=
bulk_prefix
+
welllog_ddms_v3
.
WELL_LOGS_API_BASE_PATH
,
tags
=
tags
,
dependencies
=
dependencies
)
tags
=
bulk_tags
if
bulk_tags
else
[
"WellLog"
],
wdms_app
.
include_router
(
dependencies
=
basic_dependencies
,
include_in_schema
=
is_visible
)
wdms_app
.
include_router
(
bulk_utils
.
router_bulk
,
bulk_utils
.
router_bulk
,
prefix
=
ALPHA_APIS_PREFIX
+
DDMS_V3_PATH
+
welllog_ddms_v3
.
WELL_LOGS_API_BASE_PATH
,
prefix
=
bulk_prefix
+
welllog_ddms_v3
.
WELL_LOGS_API_BASE_PATH
,
tags
=
tags
,
dependencies
=
dependencies
)
tags
=
bulk_tags
if
bulk_tags
else
[
"WellLog"
],
dependencies
=
basic_dependencies
,
include_in_schema
=
is_visible
)
# wellbore trajectory bulk v3 APIs
# wellbore trajectory bulk v3 APIs
wdms_app
.
include_router
(
wdms_app
.
include_router
(
sessions
.
router
,
sessions
.
router
,
prefix
=
ALPHA_APIS_PREFIX
+
DDMS_V3_PATH
+
wellbore_trajectory_ddms_v3
.
WELLBORE_TRAJECTORIES_API_BASE_PATH
,
prefix
=
bulk_prefix
+
wellbore_trajectory_ddms_v3
.
WELLBORE_TRAJECTORIES_API_BASE_PATH
,
tags
=
tags
,
dependencies
=
dependencies
)
tags
=
bulk_tags
if
bulk_tags
else
[
"Trajectory v3"
],
wdms_app
.
include_router
(
dependencies
=
basic_dependencies
,
include_in_schema
=
is_visible
)
wdms_app
.
include_router
(
bulk_utils
.
router_bulk
,
bulk_utils
.
router_bulk
,
prefix
=
ALPHA_APIS_PREFIX
+
DDMS_V3_PATH
+
wellbore_trajectory_ddms_v3
.
WELLBORE_TRAJECTORIES_API_BASE_PATH
,
prefix
=
bulk_prefix
+
wellbore_trajectory_ddms_v3
.
WELLBORE_TRAJECTORIES_API_BASE_PATH
,
tags
=
tags
,
dependencies
=
dependencies
)
tags
=
bulk_tags
if
bulk_tags
else
[
"Trajectory v3"
],
dependencies
=
basic_dependencies
,
include_in_schema
=
is_visible
)
# log bulk v2 APIs
# log bulk v2 APIs
wdms_app
.
include_router
(
wdms_app
.
include_router
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment