Use GET request to get post types