I want to upload data using REST api and uploadTask of URLSession in background.I search a lot but cannot find examples of this.I have data that is store in local database with different fields such as latitude/longitude ,images etc.Now I want to upload these data fields to server using REST api but I don't know how to use REST api with upload task as I want to upload in background in Swift. I am using this REST api: http://docs.parseplatform.org/rest/guide/
Any help would be appreciated..