fix: REST api with PUT/POST requests