Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3771

POST request with Alamofire and deeply nested dictionary

$
0
0

Whenever I send some request with basic parameters, it works like a charm, for example:

let parametersServices  = ["name": ["first": "\(givenName)","last": "\(familyName)"    ]]

But if I send parameters with deep nesting, it does not make any effect on those deeply nested parameters, for example:

let parametersServices  = ["name": ["first": "\(givenName)","last": "\(familyName)"    ],"services" : ["mentoring": ["profileId" : "id123","title" : "mentor"        ]    ]]

Am I doing something wrong or is such type of PATCH does not supported to modify deeply nested profileId ?

Because if I try simply create new user with same parameters, it works fine, however there it does not accept changes with PATCH for existing items.


Viewing all articles
Browse latest Browse all 3771

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>