Re: 'expects' return value per status code?

Hi Victor, 

could you explain a bit more how status code and response body are related in your design, maybe give an example? Are we talking about error responses at all? 

Best regards, 
Dietrich 

Am 17.09.2015 15:36 schrieb "Charpenay, Victor (ext)" <victor.charpenay@siemens.com>:

Hi everybody,

 

as I was designing a Hydra spec, I stumbled upon this little issue: I have different expected return values, depending on the status code that is responded.

 

Has anybody already raised this issue? Would it make sense to change the range of ‘hydra:expects’ so that it could include both a StatusCodeDescription and a hydra:Class?

 

Sincerely,

Victor Charpenay

 

Siemens AG

Corporate Technology

Research and Technology Center

CT RTC NEC ITH-DE

Otto-Hahn-Ring 6

81739 München, Deutschland

mailto:victor.charpenay@siemens.com 

 

Siemens Aktiengesellschaft: Vorsitzender des Aufsichtsrats: Gerhard Cromme; Vorstand: Joe Kaeser, Vorsitzender; Roland Busch, Lisa Davis, Klaus Helmrich, Janina Kugel, Siegfried Russwurm, Ralf P. Thomas; Sitz der Gesellschaft: Berlin und München, Deutschland; Registergericht: Berlin Charlottenburg, HRB 12300, München, HRB 6684; WEEE-Reg.-Nr. DE 23691322

 

 

Received on Sunday, 20 September 2015 12:17:47 UTC