CST 336 - Module 3
Week 3,
This week’s material covered the use of Web API calls. A Web API (Application Programming Interface) can contain data that may benefit a web page or application. The data is sent and received using a request and response system and is typically used in JSON format.
An example of one such use is having a Web API hold a large number of images (links to images), which may also take requests to send a random image. If one would like to have their web page have a random background image every time the user loads the page, the creator can make a call to the Web API containing those images and request a random image.
Another way to look at this would be to visualize a database of objects. In this case, a database of images. Obviously, web API’s can contain more than links to images. For example, the web API I used for the assignment this week was the Rick and Morty API. This API had information for each character that was introduced in the show, including all the side characters. This included the characters gender, age, status, species, etc. There were additional uses for the API such as the locations and episodes of the show, but I didn’t use them
Comments
Post a Comment