I have created a class, which inherits from the Resource class. This class contains Strings, Dates, other resource objects and LinkedResourceCollection objects.
I have created an initialiser for this class using optional values as parameters.
I am trying to POST a resource using:
var resource = ResourceName()
resource.attributeName = "123"
spine.save(resource).onSuccess { (resource) in
print("Saved")
}.onFailure { (error) in
dump(error)
}
Although the server gets my request, it does not receive any string containing from the value of the attributeName.
I have copied the JSON which is being created through the debugger and I performed the request through the Postman which did the POST successfully.
I have created a class, which inherits from the Resource class. This class contains Strings, Dates, other resource objects and LinkedResourceCollection objects.
I have created an initialiser for this class using optional values as parameters.
I am trying to POST a resource using:
Although the server gets my request, it does not receive any string containing from the value of the attributeName.
I have copied the JSON which is being created through the debugger and I performed the request through the Postman which did the POST successfully.