added support for get request (same data structure as the post)