Extract http request fields values

Hi world, i work actually on an intersystems project , my question is :

i've my Rest class that receive an HTTP request from a client side , i want to know how extract data from this http request , for example : date , id_client and measures taken by the client ( i need to extract  a weight value catched from a connected scale to my smart phone via bluetooth ) .

Thank you

  • 0
  • 0
  • 194
  • 2
  • 2

Answers

In any place (but preferably in the beginning) of your REST handler method add these lines:

set %response.ContentType = "text/html"
do ##class(%CSP.Utils).DisplayAllObjects()
quit $$$OK

and then open REST Url to see all current objects, including %request.

Comments

Soufiane, please don't use the "Developer Community FAQ" tag for this sort of post. There are better ones available, and using them may get your post seen faster by people willing to help.

As OP you have the power to edit your post and change its tags.