User bio
404 bio not found
Member since Jun 10, 2016
Replies:

Is it possible?: Yes
Is it a good idea: No

Proof of concept of bad idea:

Class Rest.BadExample Extends %CSP.Page
{

Parameter CHARSET = "utf-8";

Parameter CONTENTTYPE = "application/json";

ClassMethod OnPage() As %Status
{

  Set String = "[ {code:1,description:'cat'},{code:2,description:'lyon'}]"
  Write String

  Quit $$$OK
}

}

As Eduard said, you should make your own class that inherits from %CSP.REST

Certifications & Credly badges:
Gery has no Certifications & Credly badges yet.
Global Masters badges:
Gery has no Global Masters badges yet.
Followers:
Gery has no followers yet.
Following:
Gery has not followed anybody yet.