hands on for creating rest apis in flask both using library and without using library