mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 10:54:18 +00:00
26 lines
481 B
Python
26 lines
481 B
Python
from flask import Blueprint
|
|
from flask_restx import Api
|
|
|
|
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(tokens_ns)
|