I just wanted to do the second course. Sadly the Poemist API mentioned in exercise 2 (Understanding the data structure - n8n Documentation) seems to be not available anymore. It results in http status code 404.
I didn’t find any public API on the Poemist website, so I guess you need to find a replacement and update the docs accordingly.
Thanks for the very fast response @Jon , I appreciate that and the effort to build such an awesome product like n8n!
I also want to mention that a lot of the screenshots from the tutorials are some kind of outdated. They show nodes that look different today. As I’m a pro developer on my own, I surely know that keeping the docs update to date doesn’t make the most fun, but I guess for beginners it’s essential to get it going.
Oh and while I’m here …
The wording in section : Understanding the data structure - n8n Documentation
I’d have gotten the question wrong if it was in a test… as I wrote my code node (in a pedantic fashion) to change each item (e.g worker 2 , worker 3 ) to reference worker 1s work email at the time I was writing the code I was thinking why would every item want worker1s work email but hey it’s a plausible thing that someone might want to do.
my attempt was this at first - before looking at the answer
for (const item of $input.all()) {
item.json.workEmail = items["0"].json.email.work
}
return $input.all();
BTW I’m enjoying the courses so please dont think as a knock back - It’s really good docs - it’s just the way I’m taking in the material and understanding it
That last part… It would only assign the email to the first item as you are setting workEmail for index 0, I guess if you were to do your own thing instead you would get different results. I am not actually sure why we use the one item though. Maybe that is something we can improve on in a future update.