# 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 ----------------------------------------------------------------------------------------- /qsmitarbeiter/ alle Daten anfordern /qsmitarbeiter/:mitarbeiter-id Daten eines einzelnen Mitarbeiters /qsmitarbeiter/+Daten Daten speichern Rückgabe Id /qsmitarbeiter/:qsmitarbeiter-id+Daten Daten ändern /qsmitarbeiter/:qsmitarbeiter-id Daten löschen """ #---------------------------------------------------------- class QsMitarbeiter_cl(object): #---------------------------------------------------------- exposed = True # gilt für alle Methoden #------------------------------------------------------- def __init__(self): #------------------------------------------------------- pass #------------------------------------------------------- def GET(self): #------------------------------------------------------- return json.dumps(retVal_o) #------------------------------------------------------- def PUT(self): #------------------------------------------------------- return json.dumps(retVal_o) #------------------------------------------------------- def POST(self): #------------------------------------------------------- return json.dumps(retVal_o) #------------------------------------------------------- def DELETE(self): #------------------------------------------------------- return json.dumps(retVal_o) """ Anforderung GET PUT POST DELETE ----------------------------------------------------------------------------------------- /swentwickler/ Daten aller Entwickler /swentwickler/:swentwickler-id Daten eines einzelnen Entwicklers Daten löschen /swentwickler/+Daten Neuen SW-E speichern /swentwickler/:swentwickler-id+Daten Daten ändern """ #---------------------------------------------------------- class SwEntwickler_cl(object): #---------------------------------------------------------- exposed = True # gilt für alle Methoden #------------------------------------------------------- def __init__(self): #------------------------------------------------------- pass #------------------------------------------------------- def GET(self): #------------------------------------------------------- return json.dumps(retVal_o) #------------------------------------------------------- def PUT(self): #------------------------------------------------------- return json.dumps(retVal_o) #------------------------------------------------------- def POST(self): #------------------------------------------------------- return json.dumps(retVal_o) #------------------------------------------------------- def DELETE(self): #------------------------------------------------------- return json.dumps(retVal_o) # EOF