News for hackers. Stuff that matters.
Re:New Python REST API and CLI micro-framework by jdnier on Friday February 19, 2016 @11:09AM (#11134317)
So how would I use Hug as a secure public API -- https, authentication, authorization? Would I read up on Falcon? Are there any examples you could point to of how that might be done?
Re:New Python REST API and CLI micro-framework by timothycrosley on Friday February 19, 2016 @11:38AM (#11134524)
Re:New Python REST API and CLI micro-framework by raarts on Friday February 19, 2016 @05:00PM (#11136962)
Is there a https example? Personally I think all examples online should use ssl by default these days. http should be banned altogether.
Re:New Python REST API and CLI micro-framework by timothycrosley on Friday February 19, 2016 @05:49PM (#11137335)
That's not how things work when using any WSGI based framework, the SSL part should be handled by either uwsgi / gunicorn or nginx. Development servers (hug or Flask or any other) should basically never be used directly. Examples can, and should be done using HTTP to allow local testing.