function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Amit Mathur 26Amit Mathur 26 

HttpGet methods do not support return type of System.XmlStreamWriter

Jayeshkumar ParmarJayeshkumar Parmar

Hello Amit Mathur 26,

 

These return and parameter types are allowed:

 

Apex primitives

sObjects

Lists or maps of Apex primitives or sObjects (only maps with String keys are supported).

User-defined types that contain member variables of the types
 


Please refer below the link for better understanding 
https://developer.salesforce.com/docs/atlas.en-us.214.0.apexcode.meta/apexcode/apex_rest_methods.htm
 
 
Please Mark It As Best Answer If It Helps
Thank You.