'API Version update from v1 to v2 in iOS

In my application I want to update API URL from v1 to v2

"api/myapplication/v1/get_data/"

"api/myapplication/v2/get_data/"

Directly change the url from v1 to v2. Data printed successfully in console for v2, but page not displaying for v2 url.

Showing something went wrong



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source