To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
HTTP + JSON
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /v2/client/proposals/sign HTTP/1.1
Host: api.portfoliolink.co.za
Accept: application/json
Content-Type: application/json
Content-Length: length
{"guid":"String","password":"String","accept":false,"goalId":0,"browser":"String","ipAddress":"String","name":"String","geoLocation":{"ip":"String","type":"String","continentCode":"String","continentName":"String","countryCode":"String","countryName":"String","regionCode":"String","regionName":"String","city":"String","zip":0,"latitude":0,"longitude":0,"location":{"geonameId":0,"capital":"String"}},"rejectReason":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"result":{"signed":"0001-01-01T00:00:00.0000000","ipAddress":"String","browser":"String","entityType":"String","entityId":0,"name":"String","rejectReason":"String","accepted":false,"geoLocation":{"ip":"String","type":"String","continentCode":"String","continentName":"String","countryCode":"String","countryName":"String","regionCode":"String","regionName":"String","city":"String","zip":0,"latitude":0,"longitude":0,"location":{"geonameId":0,"capital":"String"}}}}