droxit / roxcomposer

This is the droxit microservice framework repository.
GNU Lesser General Public License v3.0
5 stars 0 forks source link

Request http://localhost:7475/services funktioniert, aber http://localhost:7475/services/ (also mit Slash am Ende) nicht. #78

Closed hecktor-droxit closed 5 years ago

hecktor-droxit commented 5 years ago

Ein Slash am Ende einer URL sorgt dafür, dass eine 404 mit "Invalid path" zurückgegeben wird (vgl. die beiden Request-Response-Beispiele). Lässt man den Slash weg, funktioniert der Request wie gewohnt. Ich denke, es ist intuitiver wenn der ROXcomposer da keinen Unterschied machen würde.

Request: curl http://localhost:7475/services Response: {"basic_reporting":{"classpath":"roxcomposer.monitor.basic_reporting_service.BasicReportingService","params":{"logging":{"filename":"pipeline.log"},"name":"basic_reporting","filename":"../logs/trace.log","ip":"127.0.0.1","port":6690,"monitoring":{"filename":"../logs/reporting-service-trace.log"}}},"image_adder":{"classpath":"roxcomposer.tests.classes.image_adder.ImageAdder","params":{"ip":"127.0.0.1","port":4002,"name":"image_adder","logging":{"logpath":"../logs/services/image_adder.log","level":"INFO"},"monitoring":{"filename":"../logs/trace.log","monitor_class":"roxcomposer.monitor.basic_monitoring.BasicMonitoring"}}},"html_generator":{"classpath":"roxcomposer.tests.classes.html_generator.HtmlGenerator","params":{"ip":"127.0.0.1","port":4003,"name":"html_generator","logging":{"logpath":"../logs/services/image_adder.log","level":"INFO"},"monitoring":{"filename":"../logs/trace.log","monitor_class":"roxcomposer.monitor.basic_monitoring.BasicMonitoring"}}}}

Request: curl http://localhost:7475/services/ Response: {"reason": "Invalid path"}