Open mdrobisch opened 1 year ago
See #78 for the previous step
127.0.0.1:5000/api/v1
"actions" : [ { "workspace" : "invoices", "action" : "createConsumptionLog", "guestEmail" : "konglomerat@konglomerat.org", "guestIsMember" : true, "serviceArea" : "Laser", "serviceName" : "Cameo", "serviceQuantity" : 42.0, "serviceUnit" : "min" } ] }
http basic auth
devEnv.py
allow_basic_authentication= True
config.ini
{ "head": { "version": "0.2.2" }, "actions": [ { "action": "notify", "target": "webclient", "version": "1.0.0", "source": "server", "delay": 0.0, "message": "Consumption log created", "messagetype": "success" } ], "response": { "custom": "customResponse" } }
response
handle
return "success", replyActions, {"custom": "customResponse"}
HINT: Please do not merge this. This Pull Request is ment to be a starting point for new developers.
See #80 for the next step
See #78 for the previous step
127.0.0.1:5000/api/v1
http basic auth
to authenticatedevEnv.py
for default user-name and passwordshttp basic auth
byallow_basic_authentication= True
inconfig.ini
response
property as a easy way to add non-action response (metadata) to the action-replyhandle
return "success", replyActions, {"custom": "customResponse"}
HINT: Please do not merge this. This Pull Request is ment to be a starting point for new developers.
See #80 for the next step