
    i                     >   d dl mZmZmZ d dlmZ  ee          Ze                    ddg          d             Ze                    ddg          d             Z	e                    d	d
g          d             Z
edk    re                    d           dS dS )    )Flaskjsonifyrequest)datetimez/helloGET)methodsc                  $    t          ddi          S )z'GET /hello - Returns a greeting messagemessagezHello, World!)r        /tmp/flask_api/app.pyhellor      s     I/000r   z/timec                  j    t          dt          j                                                    i          S )z'GET /time - Returns current server timetime)r   r   now	isoformatr   r   r   r   r      s)     FHLNN44667888r   z/echoPOSTc                  t    t          j                    } | t          ddi          dfS t          d| i          S )z&POST /echo - Echoes back the JSON bodyNerrorzNo JSON body providedi  echo)r   get_jsonr   )datas    r   r   r      sB     D|!89::C??FD>"""r   __main__T)debugN)flaskr   r   r   r   __name__approuter   r   r   runr   r   r   <module>r       s    ) ) ) ) ) ) ) ) ) )      eHoo8eW%%1 1 &%1 7UG$$9 9 %$9 7VH%%# # &%# zGG$G r   