Today we learned about AJAX calls. Hilarity ensued this afternoon as we all had to create an application shell (some of us may have forgotten to engage GitHub first and had to start over again with the folder in a GitHub repository folder). We fired code for the web server—up to this point, we’ve been relying on the “Live Server” from Visual Studio Code. We’re using something called a REST API. I know it sounds like a high-end day spa, but it stands for “representational state transfer technology for an application program interface that uses HTTP requests to GET, PUT, POST, and DELETE data.
There were a few fits and starts as some people inadvertently killed their web server.
We also used Postman to test out our connection to get data, post data, etc. I know. I can’t get the song out of my head now, either…
EAR WORM!!!
I’m happy to report that, as of 9:10 p.m., I got my new entries to post to the JSON file! Now I just need to figure out how to PUT for the update file. Watch—that will probably be tomorrow’s project!
Mr. Postman look 👀 and see. There’s light at the end of the tunnel for me. ❤️❤️❤️