So, let's create the articles class started from the get method. It takes an article id as a parameter. This article id is directly related to the article id in the get request. So they get mated, it's going to retrieve an article, the details of an article identified by its ID. You're going to use the find method or our array that returns the value of the first element in the array that satisfies the provided testing function. If an article is not found, it will return undefined.
So in case of success, we return a success response that has a status code, a successful status code that is 200 and updated the Discover article case the article is not found. We will react with the iris response with all the data set accordingly. There on our server, we first tried with an ru to existing articles, and we will use a tool to pretty print our jeezum. As you can see, in a few seconds from the result, we have a payload status code 200 as success equals to true, same for another article that exists, but trying with an article that doesn't exist we will have an error response