Create a Network Controller class in Swift (Alamofire)
Budget: €8 – €30 EUR
I need a swift controller (i.e., swift class) that handles the communication with a REST web service.
The controller must have the following characteristics:
- every network call must include a Bearer Authentication (i.e., authentication token) into the request's header
- if the call fails, the controller must automatically refresh the authentication token and then retry the failed call with the new token
- a GET call
- a POST call
- an upload call, which uploads an image (JPEG/PNG) to the web server
The controller must have the following characteristics:
- every network call must include a Bearer Authentication (i.e., authentication token) into the request's header
- if the call fails, the controller must automatically refresh the authentication token and then retry the failed call with the new token
- a GET call
- a POST call
- an upload call, which uploads an image (JPEG/PNG) to the web server