{"id":179,"date":"2022-03-25T14:05:17","date_gmt":"2022-03-25T14:05:17","guid":{"rendered":"https:\/\/felixaugenstein.com\/blog\/?p=179"},"modified":"2023-02-24T08:29:57","modified_gmt":"2023-02-24T08:29:57","slug":"how-to-import-watson-apis-for-instance-natural-language-understanding-into-postman","status":"publish","type":"post","link":"https:\/\/felixaugenstein.com\/blog\/how-to-import-watson-apis-for-instance-natural-language-understanding-into-postman\/","title":{"rendered":"How to import Watson APIs \u2013 for instance Natural Language Understanding \u2013 into Postman"},"content":{"rendered":"\n<p>In this article you will learn how to import any of the Watson APIs into Postman, so you can test each request before integrating the Watson service into your own application. We will use the Watson Natural Language Understanding (NLU) API as an example.<\/p>\n\n\n\n<p>1. Download the OpenAPI definition for NLU from <a href=\"https:\/\/cloud.ibm.com\/apidocs\/natural-language-understanding \">https:\/\/cloud.ibm.com\/apidocs\/natural-language-understanding <\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"818\" height=\"486\" src=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/download-openapi-nlu.png\" alt=\"\" class=\"wp-image-181\" srcset=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/download-openapi-nlu.png 818w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/download-openapi-nlu-300x178.png 300w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/download-openapi-nlu-768x456.png 768w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/download-openapi-nlu-230x137.png 230w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/download-openapi-nlu-350x208.png 350w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/download-openapi-nlu-480x285.png 480w\" sizes=\"auto, (max-width: 818px) 100vw, 818px\" \/><\/figure>\n\n\n\n<p>  <\/p>\n\n\n\n<p>2. Import the JSON-file as a Postman Collection.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"471\" src=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/import-json-postman-1024x471.png\" alt=\"\" class=\"wp-image-182\" srcset=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/import-json-postman-1024x471.png 1024w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/import-json-postman-300x138.png 300w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/import-json-postman-768x353.png 768w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/import-json-postman-1536x706.png 1536w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/import-json-postman-2048x941.png 2048w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/import-json-postman-830x382.png 830w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/import-json-postman-230x106.png 230w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/import-json-postman-350x161.png 350w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/import-json-postman-480x221.png 480w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>  <\/p>\n\n\n\n<p>3. Configure the authorization for the collection, select Basic Auth and insert apikey as Username and your actual NLU apikey as the Password (You can find your NLU apikey and URL if you click on your created service in the IBM Cloud). <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"866\" src=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-auth-1024x866.png\" alt=\"\" class=\"wp-image-183\" srcset=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-auth-1024x866.png 1024w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-auth-300x254.png 300w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-auth-768x649.png 768w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-auth-1536x1298.png 1536w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-auth-2048x1731.png 2048w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-auth-830x702.png 830w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-auth-230x194.png 230w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-auth-350x296.png 350w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-auth-480x406.png 480w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>  <\/p>\n\n\n\n<p>4. Configure the baseURL variable for the collection, therefore put in your actual NLU URL as initial and current value (You can find your NLU apikey and URL if you click on your created service in the IBM Cloud).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"414\" src=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-baseurl-1024x414.png\" alt=\"\" class=\"wp-image-184\" srcset=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-baseurl-1024x414.png 1024w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-baseurl-300x121.png 300w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-baseurl-768x311.png 768w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-baseurl-1536x622.png 1536w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-baseurl-2048x829.png 2048w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-baseurl-830x336.png 830w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-baseurl-230x93.png 230w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-baseurl-350x142.png 350w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-baseurl-480x194.png 480w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>  <\/p>\n\n\n\n<p>5. Configure some of the params and start your first API call, you can use for instance the analyze text GET request and configure params like text and some features.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"588\" src=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-params-start-apicall-1024x588.png\" alt=\"\" class=\"wp-image-185\" srcset=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-params-start-apicall-1024x588.png 1024w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-params-start-apicall-300x172.png 300w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-params-start-apicall-768x441.png 768w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-params-start-apicall-1536x881.png 1536w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-params-start-apicall-830x476.png 830w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-params-start-apicall-230x132.png 230w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-params-start-apicall-350x201.png 350w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-params-start-apicall-480x275.png 480w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2022\/03\/configure-params-start-apicall.png 1882w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>  <\/p>\n\n\n\n<p>This is it, now you know how to work with the Watson APIs in Postman.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article you will learn how to import any of the Watson APIs into Postman, so you can test each request before integrating the Watson service into your own application. We will use the Watson Natural Language Understanding (NLU) API as an example. 1. Download the OpenAPI definition for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":180,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43,42,52],"tags":[],"class_list":["post-179","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-natural-language-understanding","category-postman","category-watson-nlu"],"_links":{"self":[{"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/posts\/179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/comments?post=179"}],"version-history":[{"count":3,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/posts\/179\/revisions"}],"predecessor-version":[{"id":188,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/posts\/179\/revisions\/188"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/media\/180"}],"wp:attachment":[{"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/categories?post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/tags?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}