We have created a Swagger (file attached) Rest Service instance with Smart Objects, however on a view when running Serialize then GetData method the HTTP response code this is coming back as error 415.
In the service instance I have now added in the default HTTP response headers the below so this knows that this is JSON:
{"$type": "SourceCode.SmartObjects.Services.Endpoints.Common.HttpHeadere], SourceCode.SmartObjects.Services.Endpoints.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null", "$values": : { "$type": "SourceCode.SmartObjects.Services.Endpoints.Common.HttpHeader, SourceCode.SmartObjects.Services.Endpoints.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null", "Name": "Accept", "Value": "application/json" }, {"$type": "SourceCode.SmartObjects.Services.Endpoints.Common.HttpHeader, SourceCode.SmartObjects.Services.Endpoints.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null","Name": "Content-Type","Value": "application/json"} ]}
However this then brings back error 500 and on the Endpoint this is passing an empty value.
I have looked over the guides and searched the forum however I am just looking for something basic as a starting point before building out from there.