Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
backend
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
Service Desk
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
IIIF
backend
Commits
a68f361d
Verified
Commit
a68f361d
authored
Jan 26, 2023
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Rename api to routes
parent
3a8b7f84
No related branches found
No related tags found
1 merge request
!2
Draft:Generic api v1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Mirador_backend/app.py
+2
-2
2 additions, 2 deletions
Mirador_backend/app.py
Mirador_backend/routes/__init__.py
+0
-0
0 additions, 0 deletions
Mirador_backend/routes/__init__.py
Mirador_backend/routes/v1.py
+1
-1
1 addition, 1 deletion
Mirador_backend/routes/v1.py
with
3 additions
and
3 deletions
Mirador_backend/app.py
+
2
−
2
View file @
a68f361d
...
@@ -5,13 +5,13 @@ from apispec import APISpec
...
@@ -5,13 +5,13 @@ from apispec import APISpec
from
apispec.ext.marshmallow
import
MarshmallowPlugin
from
apispec.ext.marshmallow
import
MarshmallowPlugin
from
flask_apispec.extension
import
FlaskApiSpec
from
flask_apispec.extension
import
FlaskApiSpec
from
Mirador_backend.
api
import
v1
from
Mirador_backend.
routes
import
v1
app
=
Flask
(
__name__
)
app
=
Flask
(
__name__
)
api
=
Api
(
app
)
api
=
Api
(
app
)
docs
=
FlaskApiSpec
(
app
)
docs
=
FlaskApiSpec
(
app
)
v1
.
register_
api
(
api
,
docs
)
v1
.
register_
routes
(
api
,
docs
)
app
.
config
.
update
({
app
.
config
.
update
({
'
APISPEC_SPEC
'
:
APISpec
(
'
APISPEC_SPEC
'
:
APISpec
(
...
...
This diff is collapsed.
Click to expand it.
Mirador_backend/
api
/__init__.py
→
Mirador_backend/
routes
/__init__.py
+
0
−
0
View file @
a68f361d
File moved
This diff is collapsed.
Click to expand it.
Mirador_backend/
api
/v1.py
→
Mirador_backend/
routes
/v1.py
+
1
−
1
View file @
a68f361d
...
@@ -18,5 +18,5 @@ def add_resource(api, docs, name):
...
@@ -18,5 +18,5 @@ def add_resource(api, docs, name):
docs
.
register
(
class_
)
docs
.
register
(
class_
)
def
register_
api
(
api
,
docs
):
def
register_
routes
(
api
,
docs
):
add_resource
(
api
,
docs
,
'
mirador_resource
'
)
add_resource
(
api
,
docs
,
'
mirador_resource
'
)
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