Handling GET and DELETE HTTP methods