|
|
|
|
@ -416,7 +416,7 @@ public class Services { |
|
|
|
|
/// - apiCall: An ApiCall instance to configure the returned request |
|
|
|
|
fileprivate func _syncPostRequest<T: SyncedStorable>(from apiCalls: [ApiCall<T>]) throws -> URLRequest { |
|
|
|
|
|
|
|
|
|
let urlString = baseURL + "data/" |
|
|
|
|
let urlString = "\(baseURL)\(GetSyncData.resourceName())/" |
|
|
|
|
|
|
|
|
|
guard let url = URL(string: urlString) else { |
|
|
|
|
throw ServiceError.urlCreationError(url: urlString) |
|
|
|
|
@ -464,7 +464,7 @@ public class Services { |
|
|
|
|
let encodedDate = |
|
|
|
|
formattedDate.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed) ?? "" |
|
|
|
|
let encodedDateWithPlus = encodedDate.replacingOccurrences(of: "+", with: "%2B") |
|
|
|
|
let urlString = baseURL + "data/?last_update=\(encodedDateWithPlus)" |
|
|
|
|
let urlString = baseURL + "\(GetSyncData.resourceName())/?last_update=\(encodedDateWithPlus)" |
|
|
|
|
Logger.log("urlString = \(urlString)") |
|
|
|
|
|
|
|
|
|
guard let url = URL(string: urlString) else { |
|
|
|
|
|