Before we go any further, let's use a tool called postman. So go to Google and then look for postman for Mac, if you're on Mac, or you can say windows if you're on Windows, and then it says here, get postman comm downloads, if you go to that, you should be able to see based on your operating system, download button is given. So since mine is McCoy's, I'm able to see that it's Mac OS application. Now, what this does is it allows us to make requests based on the method like get put post delete, for example, on the browser when I typed here and press enter, it was always a get method and not POST method. Also, at some point in time, if you want to send additional details like headers, you will not be able to send from the browser, but from postman, you will be able to do this.
Now if you want. You can also look for other Other rest clients, but I use postman. So let's go ahead and download and use that. So in my case, though, I already have got postman installed. Let me open the same, and then make a request for our localhost 7777 API slash customers. So let's add a new request.
The request type is get the URL happens to be HTTP localhost colon double seven double seven. If I send it, we are going to get the Hello from spring I believe that's the response Hello Spring Boot. But if I say here slash API slash customers, I say send and you can see that we got the customers from one to 10. So it also specifies that the status is 200. total time taken is 56 milliseconds. What's the size of it and so on and so forth. Now if you want to send some additional parameters, you can just put a question mark over here itself.
Or you can see there's a section here called params. Key happens to be, let's say, underscored page. And the value happens to be, let's say four. And you can see that automatically updated over here. I say send, and I'm going to get from 31 to 40, which is the content of page number four.