Quantcast
Channel: SCN : Popular Discussions - ABAP in Eclipse
Viewing all articles
Browse latest Browse all 1215

REST Tutorial: Unclear on Resource Application Class

$
0
0

Hi all,

 

I'm tring to follow the REST Tutorial, and I may have a slight problem understanding the implementation in chapter 2.3.2 (pages 11/12). There's a note before the code that says

Here, the first call of REGISTER_DISCOVERABLE_RESOURCE is shown as an example for a discoverable resource. You can uncomment the code at first since there is no description in the tutorial of how to implement the collection resource Z_CL_##_SFLIGHT_RES_COL.

The first call does not refer to the class Z_CL_##_SFLIGHT_RES_COL but to CL_SFLIGHT_ADT_RES_CARRIERS, though, and I do not have that class in my 7.31 SP 13 system. There is no commented code, so I suppose that I should comment some code, but which call? The second call fills the local variable COLLECTION, so if I comment that out (which I probably should as it refers to the _RES_COL class mentioned in the note), I'll get a short dump because the reference will be initial.

 

Maybe I've been staring at this for too long, but I can't make head not tail of it. Am I too blind to see the obvious or is there an slight flaw in the document?

 

Thanks

  Volker


Viewing all articles
Browse latest Browse all 1215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>