hi,
i am building a REST Api in b4j and i am making calls from a b4a app (latter also from b4i).
GET / POST / PUT / DELETE works without any issues but PATCH is not working. it is giving me an error:
code:
i am building a REST Api in b4j and i am making calls from a b4a app (latter also from b4i).
GET / POST / PUT / DELETE works without any issues but PATCH is not working. it is giving me an error:
ResponseError. Reason: Not Implemented, Response:
code:
B4X:
Dim j As HttpJob
j.Initialize("", Me)
Dim json As JSONGenerator
json.Initialize(CreateMap( _
"username":"daniel123", _
"lastname":"klein", _
"comments":"Comment will be updated."))
j.PatchString($"${api_url}/patch-user"$,json.ToPrettyString(0))
j.GetRequest.SetHeader("api-host","/patch-user")
j.GetRequest.SetHeader("api-key",api_key)
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Log(j.GetString)
End If
j.Release