I’ve followed this tutorial as well but I’m stuck at Step 5 Setup a REST Resource. That paragraph confuses me. It says that developing a REST resource is beyond the scope of the tutorial but then says:
but there is another tutorial for doing so: Writing REST services. We’ll use an updated version of the resource developed in that tutorial in our app. See the REST tutorial to learn how to set up your REST resource for this gadget (or just copy the REST stuff from this tutorial’s sample code).
So are they saying I have to go follow that tutorial and set up the REST resource that describes and then somehow make that tutorial understand the REST resources required by the gadget tutorial? Am I developing two plugins - the REST resource and the gadget or is the REST resource included in the gadget plugin?
It feels like they whitewashed this whole step and I don’t understand what I’m supposed to do here.
I went ahead and built the gadget and deployed it. I could add it to a dashboard but, as expected, it didn’t work and showed an error (because there’s no REST resource I guess).