I send a request in this structure for getting data on the server as I typed before
struct Response: Encodable, Decodable {
var data: UserData
}
struct UserData: Codable {
var date: String
var type: String
private enum CodingKeys: String, CodingKey {
case date = "date"
case type = "type"
}
}
{
"data":{
"date":"07-03-2022",
"type":"airplane"
}
}
it says Error: could not handle the request in the server side
and given data is not valid json on my side, this is an interpretation it might be something wrong with the method, it should be hitp pure method with specific headers I think
Topic:
App & System Services
SubTopic:
Networking
Tags: