Commit 14e37bb8 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Clean up some unused code.

parent 2d4f679e
Pipeline #32978 passed with stages
in 1 minute and 48 seconds
......@@ -4,12 +4,8 @@ from flask_restful import Api
from flasgger import Swagger
from kubernetes.config import ConfigException
# from import_api_app.resources.HelmStart import HelmStart
# from import_api_app.resources.HelmStop import HelmStop
# from import_api_app.resources.KafkaTopics import KafkaTopics
from import_api_app.resources.WriteJobResultsToDrupal import WriteJobResultToDrupal
from import_api_app.resources.WriteTypeReportToDrupal import WriteTypeReportToDrupal
# from import_api_app.resources.ReadJobOptionsFromDrupal import ReadJobOptionsFromDrupal
from import_api_app.resources.UpdateInstitution import UpdateInstitution
from import_api_app.resources.ClearCache import ClearCache
from import_api_app.resources.UpdateRecordSet import UpdateRecordSet
......@@ -23,10 +19,9 @@ import import_api_app.configuration
import os
def create_app(test_config=None):
def create_app():
app = Flask(__name__)
app.config.from_object(import_api_app.configuration)
# app.config.from_envvar('YOURAPPLICATION_SETTINGS')
# Based on this example :
# https://github.com/flasgger/flasgger/blob/master/examples/restful.py
......@@ -90,15 +85,6 @@ def create_app(test_config=None):
FetchMappingFile,
'/v1/FetchMappingFile/<recordset_id>/<session_id>'
)
# api.add_resource(
# HelmStart,
# '/v1/helm/<institution_id>/<record_set_id>/<process_id>/<job_name>/start'
# )
# api.add_resource(HelmStop, '/v1/helm/<process_id>/<job_name>/stop')
# api.add_resource(ReadJobOptionsFromDrupal, '/v1/drupal/<job_name>/<job_drupal_uuid>')
# api.add_resource(KafkaTopics, '/v1/kafka/topics')
# api.add_resource(JobReport, '/v1/job/<topic_name>/report')
api.add_resource(WriteJobResultToDrupal, '/v1/drupal/<job_drupal_uuid>/<job_log_drupal_uuid>')
api.add_resource(WriteTypeReportToDrupal, '/v1/drupal/WriteElementReport')
api.add_resource(UpdateInstitution, '/v1/drupal/institution/<institution_drupal_uuid>')
......
Markdown is supported
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