Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mapping Provider
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
Next Generation Map
Mapping Provider
Merge requests
!1
Feature/get graph data from gap
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/get graph data from gap
feature/get-graph-data-from-gap
into
master
Overview
0
Commits
7
Pipelines
0
Changes
4
Merged
Neda Moeini
requested to merge
feature/get-graph-data-from-gap
into
master
2 months ago
Overview
0
Commits
7
Pipelines
0
Changes
4
Expand
0
0
Merge request reports
Compare
master
version 5
34d60e17
1 month ago
version 4
9c801a1b
1 month ago
version 3
c41975a4
1 month ago
version 2
320c9f0c
1 month ago
version 1
7f35eef1
2 months ago
master (base)
and
version 2
latest version
4762a014
7 commits,
1 month ago
version 5
34d60e17
6 commits,
1 month ago
version 4
9c801a1b
5 commits,
1 month ago
version 3
c41975a4
4 commits,
1 month ago
version 2
320c9f0c
3 commits,
1 month ago
version 1
7f35eef1
2 commits,
2 months ago
4 files
+
73
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
mapping_provider/__init__.py
+
10
−
3
Options
"""
Initializes the
FastAPI application.
"""
"""
Create a
FastAPI application
for the mapping provider
.
"""
from
fastapi
import
FastAPI
from
mapping_provider.api.common
import
router
as
version_router
from
mapping_provider.api.network_graph
import
router
as
graph_router
def
create_app
()
->
FastAPI
:
"""
Create a FastAPI application.
"""
@@ -11,5 +11,12 @@ def create_app() -> FastAPI:
title
=
"
Mapping provider
"
,
description
=
"
Mapping provider endpoints for GÉANT maps
"
,
)
# Force configuration to be loaded at startup to avoid issues with missing config
from
mapping_provider.dependencies
import
load_config
_
=
load_config
()
app
.
include_router
(
version_router
)
return
app
app
.
include_router
(
graph_router
)
return
app
\ No newline at end of file
Loading