Hi,
I’m struggling with something, wich is maybe not feasable …
I have the following endpoint :
$Route = New-UDEndpoint -Url "/stuff/Something/:id" -Method PUT -Endpoint {
param($id,$Body)
$x = $Body | ConvertFrom-Json
$body
$x.data >> c:\tmp\data.log
}
as you see i’m trying to get the data from the id variable (works fine), and retrieve data from the body (they are sent as json).
There is something in the body, but i can not convert it from json ! but if i output body back to the reponse, i get the correct json
Maybe it’s a bug ? maybe i can not do what i’m trying to do ? My problem is that i want to send a structured data to the route, so form is out of question. (or am i wrong ?? i’m still learning here ! )
Anyway! You’ve made something great Adam! thanks for the hard work !