Closed emillynge closed 7 years ago
Thanks, that looks good! I am somehow tending to use "endpoint" instead of "end-point", or is there a good point for one of them?
hmmm... Accordin to google endpoint is 2-3 times more widespread than end-point. And graylog in their documentation uses "endpoint", i think that there is definitely an argument for using that.
lemme just commit a change that uses endpoint...
So I did i few more thing while in the code: PEP8 some stuff (mostly missing newlines and a couple of very log function definitions)
Use "entrypoint" all around.
make the default entrypoint "/". After some thought, entrypoint=None made no sense. It's still an entrypoint, it just happens to be at the root.
The tests not passing seems to be a sporadic test failure due to some imprecision/race condition. When testing locally I get a fail on that test appr. once every 3 times.
bumping @mahrz :)
From http://docs.graylog.org/en/latest/pages/configuration/web_interface.html?highlight=endpoint#single-or-separate-listeners-for-web-interface-and-rest-api
In order to use the setup with just one exposed port bonfire has to include a new parameter "--end-point" atm. I have set this parameter to be None by default. A better option might be "/" or "/api". Additionally the
~/.bonfire.cfg
inREAMDE.rst
should maybe show examples using both of the above methods.In this PR I have also included
GraylogAPI.__str__
which shows a truncated API url