Machine-readable web pages using REST
We’ve been talking about machine-readable web pages using REST and JSON as a common language.
REST stands for Representational State Transfer, which is another way of describing machine-readable web pages. Let’s take a look at what that looks like with a simple example, before exploring the Kogito REST API in more detail.
A simple REST example
REST uses a lot of the same infrastructure as browsing the web – so you can open a REST URL such as https://api.github.com/repos/OfficeDev/office-js using a web browser, like in Figure 6.2. This screenshot was taken using Firefox, as it colors the JSON for us, but Edge and Chrome will give you similar results. Note that a lot more information will be returned – we’ve edited the image for clarity.
Figure 6.2 – A simple REST call
This REST call gives you information about a project hosted on GitHub. From the URL, you can guess...