Published on InterSystems Developer Community (https://community.intersystems.com)

Home > How do I process queryString parameters in a HttpGet Request in a %CSP.REST page?

Question
Stephen Wilson · Sep 14, 2018

How do I process queryString parameters in a HttpGet Request in a %CSP.REST page?

So by queryString I mean name-value pairs passed  in as part of the URL. Currently my service works when called like this
http://{{SERVER}}:{{PORT}}/bsolabs/api/codemanagement/testcode/BIO/CRP

What would I need to change so I can call it like this?
http://{{SERVER}}:{{PORT}}/bsolabs/api/codemanagement/testcode?Discipline=BIO&TestCode=CRP

#Object Data Model #REST API #Caché

Source URL:https://community.intersystems.com/post/how-do-i-process-querystring-parameters-httpget-request-csprest-page