mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 09:15:41 +00:00
28 lines
540 B
Python
28 lines
540 B
Python
|
from flask import Blueprint
|
||
|
from flask_restx import Api
|
||
|
|
||
|
from .jobs import ns as jobs_ns
|
||
|
from .tokens import ns as tokens_ns
|
||
|
|
||
|
bp = Blueprint('api', __name__)
|
||
|
authorizations = {
|
||
|
'basicAuth': {
|
||
|
'type': 'basic'
|
||
|
},
|
||
|
'apiKey': {
|
||
|
'type': 'apiKey',
|
||
|
'in': 'header',
|
||
|
'name': 'Authorization'
|
||
|
}
|
||
|
}
|
||
|
api = Api(
|
||
|
bp,
|
||
|
authorizations=authorizations,
|
||
|
description='An API to interact with nopaque',
|
||
|
title='nopaque API',
|
||
|
version='1.0'
|
||
|
)
|
||
|
|
||
|
api.add_namespace(jobs_ns)
|
||
|
api.add_namespace(tokens_ns)
|