Commit c9a5d798 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Moved from restful to restplus

parent 5c821f28
......@@ -29,7 +29,7 @@ There is a separate documentation for the API endpoints from a client perspectiv
.. automodule:: nomad.api.admin
"""
from .app import app
from . import auth, admin, upload, repository, archive, raw
from . import auth, admin, upload, repository, archive, raw, upload_v2
@app.before_first_request
......
......@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from flask_restful import abort
from flask_restplus import abort
from nomad import infrastructure
from nomad.processing import Upload
......
......@@ -17,7 +17,7 @@ All APIs are served by one Flask app (:py:mod:`nomad.api.app`) under different p
"""
from flask import Flask, jsonify
from flask_restful import Api
from flask_restplus import Api
from flask_cors import CORS
from werkzeug.exceptions import HTTPException
import os.path
......
......@@ -20,7 +20,7 @@ The archive API of the nomad@FAIRDI APIs. This API is about serving processed
import os.path
from flask import send_file
from flask_restful import abort
from flask_restplus import abort
from nomad import config
from nomad.files import ArchiveFile, ArchiveLogFile
......
......@@ -36,7 +36,7 @@ authenticated user information for authorization or otherwise.
"""
from flask import g, request
from flask_restful import abort
from flask_restplus import abort
from flask_httpauth import HTTPBasicAuth
from nomad import config
......
......@@ -23,7 +23,7 @@ from zipfile import ZIP_DEFLATED, ZIP_STORED
import zipstream
from flask import Response, request, send_file
from flask_restful import abort
from flask_restplus import abort
from werkzeug.exceptions import HTTPException
from nomad.files import RepositoryFile
......
......@@ -19,7 +19,7 @@ meta-data.
from elasticsearch.exceptions import NotFoundError
from flask import g, request
from flask_restful import Resource, abort
from flask_restplus import Resource, abort
from nomad.repo import RepoCalc
......
......@@ -15,7 +15,7 @@
from datetime import datetime
from flask import g, request
from flask_restful import Resource, abort
from flask_restplus import Resource, abort
from nomad.files import UploadFile
from nomad.processing import NotAllowedDuringProcessing, Upload
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment