From the course: Programming Foundations: APIs and Web Services

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Consume a RESTful API via Postman

Consume a RESTful API via Postman

From the course: Programming Foundations: APIs and Web Services

Start my 1-month free trial

Consume a RESTful API via Postman

- [Instructor] Postman is a very powerful tool used to test an API. And it can be used to test APIs developed by third parties like our programing jokes API or an API that you've developed yourself. Postman is a very popular tool used by a lot of developers and companies. So let's navigate to Postman. So let's say I want to test our programming jokes API. So I simply paste the URL here. And to invoke it, I simply click the send button. Now notice when I click send, I see a response here in this bottom window. And notice it's in json format and we have the setup and the punchline for our joke. Now if I click send again, we should see a new setup and a new punchline. Notice Postman is very helpful because it also gives you a status code. So in this case, a status code of 200 OK means the API was able to process our request successfully. Now you may see error codes here. So for example, if you saw a status of 401, that would mean your request wasn't processed because you're not…

Contents