64 lines
1.8 KiB
Python
64 lines
1.8 KiB
Python
# coding: utf-8
|
|
|
|
import json
|
|
|
|
import cherrypy
|
|
#from .database import SourceDatabase_cl, EvaluatedDatabase_cl
|
|
# Method-Dispatching!
|
|
|
|
# Übersicht Anforderungen / Methoden
|
|
# (beachte: / relativ zu /navigation, siehe Konfiguration Server!)
|
|
|
|
|
|
|
|
"""
|
|
Anforderung GET PUT POST DELETE
|
|
-----------------------------------------------------------------------------------------
|
|
/prolist/ Auswertung nach
|
|
Projekt/Komponente/
|
|
Status
|
|
"""
|
|
|
|
#----------------------------------------------------------
|
|
class ProList_cl(object):
|
|
#----------------------------------------------------------
|
|
|
|
exposed = True # gilt für alle Methoden
|
|
|
|
#-------------------------------------------------------
|
|
def __init__(self):
|
|
#-------------------------------------------------------
|
|
pass
|
|
|
|
#-------------------------------------------------------
|
|
def GET(self):
|
|
#-------------------------------------------------------
|
|
return json.dumps(retVal_o)
|
|
|
|
|
|
|
|
"""
|
|
Anforderung GET PUT POST DELETE
|
|
-----------------------------------------------------------------------------------------
|
|
/katlist/ Auswertung nach
|
|
Kategorie/Status
|
|
"""
|
|
|
|
#----------------------------------------------------------
|
|
class KatList_cl(object):
|
|
#----------------------------------------------------------
|
|
|
|
exposed = True # gilt für alle Methoden
|
|
|
|
#-------------------------------------------------------
|
|
def __init__(self):
|
|
#-------------------------------------------------------
|
|
pass
|
|
|
|
#-------------------------------------------------------
|
|
def GET(self):
|
|
#-------------------------------------------------------
|
|
return json.dumps(retVal_o)
|
|
|
|
|
|
# EOF |