REST Expose documentation - how to describe http status codes?

REST Expose documentation - how to describe http status codes?

  
REST Expose documentation - how to describe http status codes?

  • http 201 created
  • http 204 no content
  • http 401 unathorized

etc..

Hi Robert,

Currently there is no way to specify them (other then using the text in the descriptions).
Do you have a suggestion on how the could be defined in Service Studio?

Regards,
João Rosado
Joao

This is tricky! 

?I can not think of a good way for outsystems to do this right now.

(You would have to go through the entire method, every block of code!)
Joao

What about you add new properities to "Raise Error" Widget and "Error Handler" Widgets when they are used in a REST Response OR create an entirely new "Raise Error" Widget and new "Error Handler" Widget  for REST.

These widgets should contain properities with "HTTP Status Error Code" and "Structure" properity.
 
Now when the widgets are used in expose REST, you will be able to detect the widgets and be able to generate a well documented http status/error codes for each Expose REST method.

Note: 
It is still a very tricky thing to do because you have to go through all the code including all actions used in the exposed rest method to detect the raise and error handler widgets to be able to generate an accurate documentation (not impossible! just hard to do!)