Solution Application containing all the mentioned functionalities in the Assignment questions.
Prerequisite
- Python 3.4.3
Python Libraries - Flask
- Requests
- wtforms
git clone https://github.com/ThanveerulHuq/Hasura-Week1-Assignment.git
cd Hasura-Week1-Assignment/Application
python app.py
Application will start running in the port 5000.
- At http://localhost:5000/ displays "Hello World - Thanveer".
- At http://localhost:5000/authors fetches list of authors from https://jsonplaceholder.typicode.com/users and list of posts from https://jsonplaceholder.typicode.com/posts and displays Authors names with no posts by each author.
- At http://localhost:5000/setcookie , Sets a cookie with name=thanveer and age=23.
- At http://localhost:5000/getcookies fetches the cookies that has been already set and displays it's values.(If cookies are not present displays "No Cookies Found".
- At http://localhost:5000/deny displays a message as "Request Denies".
- At http://localhost:5000/html displays a simple HTML Page.
- At http://localhost:5000/input displays a text input with a submit button. On Submission the input will be displayed in the stdout.