backend/api.py
def on_get(self, req, resp):
        """Handles GET requests for this ressource"""
        content = {
            'salutation': 'Hello there, this is a simple in-memory Blogging system with a falcon-based API',
            'falconHome': 'http://falconframework.org/',
            'falconDocs': 'http://falcon.readthedocs.org/'
        }
        resp.body = json.dumps(content)
        resp.status = falcon.HTTP_200
Handles GET requests for this ressource
Handles GET requests for this ressource
Handles GET requests for this ressource
def on_get(self, req, resp):
        content = {
            'salutation': 'Hello there, this is a simple in-memory Blogging system with a falcon-based API',
            'falconHome': 'http://falconframework.org/',
            'falconDocs': 'http://falcon.readthedocs.org/'
        }
        resp.body = json.dumps(content)
        resp.status = falcon.HTTP_200
def on_get ( self , req , resp ) : content = { 'salutation' : 'Hello there, this is a simple in-memory Blogging system with a falcon-based API' , 'falconHome' : 'http://falconframework.org/' , 'falconDocs' : 'http://falcon.readthedocs.org/' } resp . body = json . dumps ( content ) resp . status = falcon . HTTP_200
Handles GET requests for this ressource
Handles GET requests for this ressource
"""Handles GET requests for this ressource"""
self
req
resp