Implementing APIs and routing functions in flask was troublesome for the first time. I started with documenting APIs with Swagger and eventually implemented the same in this application. While GET, POST and DELETE were straightforward, I had trouble implementing the PUT methods, i.e., updating the fields such as Updating the decks in the application.
After checking some tutorials over internet and going through some answers on Stackoverflow, I was able to find a solutions for the same. It seems like, my logic for updating the fields was incorrect and after two days of debugging, I was able to tackle this issue.
Discussion