changes close API from post to get