{"id":11085,"date":"2018-03-01T09:49:56","date_gmt":"2018-03-01T08:49:56","guid":{"rendered":"http:\/\/flaven.fr\/?p=11085"},"modified":"2026-09-16T10:10:21","modified_gmt":"2026-09-16T08:10:21","slug":"api-postman-newman-create-a-quick-api-with-json-server-and-faker-and-then-test-it-with-chai-js-postman-and-newman","status":"publish","type":"post","link":"https:\/\/flaven.fr\/2018\/03\/api-postman-newman-create-a-quick-api-with-json-server-and-faker-and-then-test-it-with-chai-js-postman-and-newman\/","title":{"rendered":"API, Postman, Newman &#8211; Create a quick API with json-server and Faker and then test it with Chai-JS, Postman and Newman"},"content":{"rendered":"<p>It is true I have given a title to this post that sounds like a user story of somebody who want to make name dropping. In a sense, it is true but it is for SEO purpose. The story behind is absolutely genuine : I wanted to explore testing on an API with the help of Postman and Chai! But as usual, this question is followed by another one: what API can I test? Some posts quoted below goes for an existing API such as Twitter for instance. As one thing led to another, I have decided to first build an API with the help of json-server and faker and then test this freshly born API with Chai-JS, Postman. I added at the very end Newman, just to have the cool triptych, a kind of holy trinity of API testing \ud83d\ude42<\/p>\n<p><b>The code is on github @<a href=\"https:\/\/github.com\/bflaven\/BlogArticlesExamples\/tree\/master\/to-test-a-mockingapi\" target=\"_blank\">https:\/\/github.com\/bflaven\/BlogArticlesExamples\/tree\/master\/to-test-a-mockingapi<\/a><\/b><\/p>\n<h3>Build your API<\/h3>\n<p>I found the easiest way to build-up an API with json-server. It is straight forward, the downside is that API is very primitive.<\/p>\n<p>The idea is to installed json-server and create a dir for you API, then you create a json file that will &#8220;host&#8221; the datas. In my case, the file is called users_russian.json. <\/p>\n<p>The fun part came with the usage of Faker, it is always fun to generate fake content especially in foreign language. I have decided to go for Russian.<\/p>\n<p><b>1. Just to install json-server<\/b><\/p>\n<pre lang=\"json\">npm install -g json-server<\/pre>\n<p><b>2. Create a directory for your future API. Mine is called to-test-a-mockingapi<\/b><\/p>\n<pre lang=\"json\">mkdir to-test-a-mockingapi<\/pre>\n<p><b>3. Get in the directory<\/b><\/p>\n<pre lang=\"json\">cd \/[to-your-dir]\/to-test-a-mockingapi<\/pre>\n<p><b>4. Create a json file. Mine is users_russian.json<\/b><\/p>\n<pre lang=\"json\">touch users_russian.json<\/pre>\n<p><b>5. Add one line to users_russian.json<\/b><\/p>\n<pre lang=\"json\">\r\n\t{\r\n  \"users\": [\r\n    { \"id\": 1, \"first_name\": \"\u041b\u0443\u043a\u0430\", \"last_name\": \"\u0421\u043e\u043b\u043e\u0432\u044c\u0435\u0432\",  \"city\": \"\u041d\u0430\u0442\u0430\u043b\u044c\u044fport\", \"email\": \"\u0421\u043e\u043b\u043e51@hotmail.com\" }\r\n  ]\r\n}\r\n<\/pre>\n<p><b>6. To load the json into the json server:<\/b><\/p>\n<pre lang=\"json\">json-server users_russian.json<\/pre>\n<p><b>After these 6 steps, you have a fully functional API, able to make basic CRUD operations (Create, Read, Update, and Delete)<\/b><\/p>\n<h3>Let&#8217;s have fun with Faker<\/h3>\n<p>The idea is to generate a lot a fake content : first to avoid implementing real data,  second avoid manually populating data in your API, this is exhausting.<\/p>\n<p><b>Install faker to generate fake content<\/b><\/p>\n<pre lang=\"json\">npm install faker<\/pre>\n<p><b>Generate fake content in Russian<\/b><\/p>\n<pre lang=\"json\">node users_russian.js<\/pre>\n<p><b>Generate fake content in Russian into a json file that will be loaded in json-server<\/b><\/p>\n<pre lang=\"json\">node users_russian.js > users_russian.json<\/pre>\n<p><b>The content of JS script for node, users_russian.js<\/b><\/p>\n<pre lang=\"javascript\">\r\n\/\/  users_russian.js\r\n\r\nvar faker = require('faker');\r\n\r\n\/*\r\nCheck https:\/\/github.com\/marak\/Faker.js\/ for Localization\r\n*\/\r\n\/\/ sets locale\r\n\/\/ faker.locale = \"ru\" \/\/ (Russian)\r\n\/\/ faker.locale = \"pt_BR\" \/\/ (Portugu\u00eas do Brasil)\r\n\/\/ faker.locale = \"it\" \/\/ (Italian)\r\n\/\/ faker.locale = \"fr\" \/\/ (French)\r\n\/\/ faker.locale = \"es\" \/\/ (Spanish)\r\n\r\n\r\nfaker.locale = \"ru\"; \/\/ (Russian)\r\n\r\nvar db = { users: [] };\r\n\r\nfor (var i=1; i<=1000; i++) {\r\n  db.users.push({\r\n            id: i,\r\n            first_name: faker.name.firstName(),\r\n            last_name: faker.name.lastName(),\r\n            city: faker.address.city(),\r\n            email: faker.internet.email()\r\n  });\r\n}\r\nconsole.log(JSON.stringify(db));\r\n<\/pre>\n<p><b>The CRUD actions are still working but you have much more records...<\/b><\/p>\n<p><b>POST in postman<\/b><\/p>\n<pre lang=\"javascript\">{\"id\": 1001, \"first_name\": \"\u0422\u0430\u0442\u044c\u044f\u043d\u0430\", \"last_name\": \"\u0421\u0430\u0444\u043e\u043d\u043e\u0432\u0430\", \"city\": \"\u041a\u0443\u0437\u044c\u043c\u0438\u043dside\", \"email\": \"\u0422\u0430\u0442\u044c\u044f\u043d\u043081@gmail.com\"}<\/pre>\n<p><b>PUT in postman for http:\/\/localhost:3000\/users\/1001<\/b><\/p>\n<pre lang=\"javascript\">{\"id\": 1001, \"first_name\": \"\u041d\u0438\u043a\u0438\u0442\u0430\", \"last_name\": \"\u042e\u0434\u0438\u043d\u0430\", \"city\": \"New \u041b\u0430\u0440\u0438\u0441\u0430\", \"email\": \"\u041d\u0438\u043a\u0438\u0442\u0430_40@yahoo.com\"}<\/pre>\n<p><b>Sample of Russian users made with Faker<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/03\/tests-with-postman-and-newman_1_russian_sample.jpg\" width=\"640\" height=\"480\" alt=\"API, Postman, Newman - Create a quick API with json-server and Faker and then test it with Chai-JS, Postman and Newman\"><\/p>\n<p><b>Start json-server with users_russian.json<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/03\/tests-with-postman-and-newman_2_start-json-server.jpg\" width=\"640\" height=\"480\" alt=\"API, Postman, Newman - Create a quick API with json-server and Faker and then test it with Chai-JS, Postman and Newman\"><\/p>\n<p><b>Show me the fresh API in a browser<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/03\/tests-with-postman-and-newman_3-in-a-browser.jpg\" width=\"640\" height=\"480\" alt=\"API, Postman, Newman - Create a quick API with json-server and Faker and then test it with Chai-JS, Postman and Newman\"><\/p>\n<p><b>Show me the fresh API in a Postman<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/03\/tests-with-postman-and-newman_4-in-a-postman.jpg\" width=\"640\" height=\"480\" alt=\"API, Postman, Newman - Create a quick API with json-server and Faker and then test it with Chai-JS, Postman and Newman\"><\/p>\n<p><b>The CRUD operations: GET one record of the API via Postman<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/03\/tests-with-postman-and-newman_5-in-a-postman-single.jpg\" width=\"640\" height=\"480\" alt=\"API, Postman, Newman - Create a quick API with json-server and Faker and then test it with Chai-JS, Postman and Newman\"><\/p>\n<p><b>The CRUD operations: POST one record of the API via Postman<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/03\/tests-with-postman-and-newman_6-in-a-postman-post-single.jpg\" width=\"640\" height=\"480\" alt=\"API, Postman, Newman - Create a quick API with json-server and Faker and then test it with Chai-JS, Postman and Newman\"><\/p>\n<p><b>The CRUD operations: DELETE one record of the API via Postman<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/03\/tests-with-postman-and-newman_7-in-postman-delete.jpg\" width=\"640\" height=\"480\" alt=\"API, Postman, Newman - Create a quick API with json-server and Faker and then test it with Chai-JS, Postman and Newman\"><\/p>\n<p><b>The CRUD operations: PUT (update) one record of the API via Postman<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/03\/tests-with-postman-and-newman_8-in-postman-put.jpg\" width=\"640\" height=\"480\" alt=\"API, Postman, Newman - Create a quick API with json-server and Faker and then test it with Chai-JS, Postman and Newman\"><\/p>\n<p><b>Check the activity of the json-server via the console<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/03\/tests-with-postman-and-newman_9-console-json-server.jpg\" width=\"640\" height=\"480\" alt=\"API, Postman, Newman - Create a quick API with json-server and Faker and then test it with Chai-JS, Postman and Newman\"><\/p>\n<p>You have fully functional API with all the CRUD operations. Let's make some test now with Chai.<\/p>\n<h3>Test with Chai<\/h3>\n<p>You need to create an development environment (DEV ENV) in Postman. Very easy, just enter this variable and make the query the first of your test.<\/p>\n<p><b>I have called the DEV ENV <code>postman_bdd_env<\/code><\/b><\/p>\n<pre lang=\"bash\">postman_bdd_path: http:\/\/bigstickcarpet.com\/postman-bdd\/dist\/postman-bdd.min.js<\/pre>\n<p>Source : <a href=\"https:\/\/www.npmjs.com\/package\/postman-bdd\" target=\"_blank\">https:\/\/www.npmjs.com\/package\/postman-bdd<\/a><\/p>\n<p><b>Writing tests with Postman BDD. This is made with Chai-JS.<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/03\/tests-with-postman-and-newman_12-console-error-newman.jpg\" width=\"640\" height=\"480\" alt=\"API, Postman, Newman - Create a quick API with json-server and Faker and then test it with Chai-JS, Postman and Newman\"><\/p>\n<h3>Integration with Newman<\/h3>\n<p>You need to install newman first, choose to install globally.<\/p>\n<pre lang=\"bash\">npm install newman --global<\/pre>\n<p>Quickly, here what they say about Newman, I just quote.<\/p>\n<blockquote><p>Postman has a command-line test runner called Newman. If you prefer the CLI instead of a GUI, then this the tool for you. It's also ideal for continuous-integration and continuous-delivery testing. Just like the Collection Runner, you can run your entire suite of tests, or just a single folder. You can load data from a file, and even write the test results to an output file in various formats (JSON, XML, HTML).<\/p><\/blockquote>\n<p>Source : <a href=\"https:\/\/github.com\/BigstickCarpet\/postman-bdd\" target=\"_blank\">https:\/\/github.com\/BigstickCarpet\/postman-bdd<\/a><\/p>\n<p><b>When you have exported your collection, just run this command. My collection is called <code>russian_roulette.postman_collection.json<\/code><\/b><\/p>\n<pre lang=\"bash\">newman run russian_roulette.postman_collection.json<\/pre>\n<p><b>Launching a test collection (russian_roulette.postman_collection.json) via Newman. It fails!<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/03\/tests-with-postman-and-newman_10-test-chai.jpg\" width=\"640\" height=\"480\" alt=\"API, Postman, Newman - Create a quick API with json-server and Faker and then test it with Chai-JS, Postman and Newman\"><\/p>\n<p><b>To proper launch your tests collection (russian_roulette.postman_collection.json), you need to make a first call to {{postman_bdd_path}} aka postman-bdd.min.js<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/03\/tests-with-postman-and-newman_13-correction-for-chai-newman.jpg\" width=\"640\" height=\"480\" alt=\"API, Postman, Newman - Create a quick API with json-server and Faker and then test it with Chai-JS, Postman and Newman\"><\/p>\n<p><b>Launching a test collection (russian_roulette.postman_collection.json) via Newman after the correction. It works!<\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/03\/tests-with-postman-and-newman_14-newman-yeah.jpg\" width=\"640\" height=\"480\" alt=\"API, Postman, Newman - Create a quick API with json-server and Faker and then test it with Chai-JS, Postman and Newman\"><\/p>\n<p><b>Conclusion : Very useful and promising for anyone who dare to develop an API and remember little grasshopper \"to test is to doubt\".<\/b><\/p>\n<h2>Read more<\/h2>\n<ul>\n<li>Create a Mock REST API in Seconds for Prototyping your Frontend (excellent article)<br \/><a href=\"https:\/\/coligo.io\/create-mock-rest-api-with-json-server\/\" target=\"_blank\">https:\/\/coligo.io\/create-mock-rest-api-with-json-server\/<\/a><\/li>\n<li>Write API Tests with Postman and Newman (top article)<br \/><a href=\"https:\/\/scotch.io\/tutorials\/write-api-tests-with-postman-and-newman\" target=\"_blank\">https:\/\/scotch.io\/tutorials\/write-api-tests-with-postman-and-newman<\/a><\/li>\n<li>API testing tips from a Postman professional (top article)<br \/><a href=\"http:\/\/blog.getpostman.com\/2017\/07\/28\/api-testing-tips-from-a-postman-professional\/\" target=\"_blank\">http:\/\/blog.getpostman.com\/2017\/07\/28\/api-testing-tips-from-a-postman-professional\/<\/a><\/li>\n<li>Test a Node RESTful API with Mocha and Chai (excellent article)<br \/><a href=\"https:\/\/scotch.io\/tutorials\/test-a-node-restful-api-with-mocha-and-chai\" target=\"_blank\">https:\/\/scotch.io\/tutorials\/test-a-node-restful-api-with-mocha-and-chai<\/a><\/li>\n<li>API Automation using POSTMAN (excellent article)<br \/><a href=\"https:\/\/blog.imaginea.com\/api-automation-using-postman\/\" target=\"_blank\">https:\/\/blog.imaginea.com\/api-automation-using-postman\/<\/a><\/li>\n<li>Create A REST API With JSON Server (good article)<br \/><a href=\"https:\/\/medium.com\/codingthesmartway-com-blog\/create-a-rest-api-with-json-server-36da8680136d\" target=\"_blank\">https:\/\/medium.com\/codingthesmartway-com-blog\/create-a-rest-api-with-json-server-36da8680136d<\/a><\/li>\n<li>Quick Tip: Mock REST APIs Using json-server<br \/><a href=\"https:\/\/www.sitepoint.com\/mock-rest-apis-using-json-server\/\" target=\"_blank\">https:\/\/www.sitepoint.com\/mock-rest-apis-using-json-server\/<\/a><\/li>\n<li>Understanding JSON Schema<br \/><a href=\"https:\/\/spacetelescope.github.io\/understanding-json-schema\/index.html\" target=\"_blank\">https:\/\/spacetelescope.github.io\/understanding-json-schema\/index.html<\/a><\/li>\n<li>JSONschema.net<br \/><a href=\"https:\/\/jsonschema.net\/\" target=\"_blank\">https:\/\/jsonschema.net\/<\/a><\/li>\n<li>Creating a simple REST API with expressJS in 5min<br \/><a href=\"https:\/\/www.codementor.io\/wapjude\/creating-a-simple-rest-api-with-expressjs-in-5min-bbtmk51mq\" target=\"_blank\">https:\/\/www.codementor.io\/wapjude\/creating-a-simple-rest-api-with-expressjs-in-5min-bbtmk51mq<\/a><\/li>\n<li>Postman BDD Examples<br \/><a href=\"https:\/\/documenter.getpostman.com\/view\/220187\/postman-bdd-examples\/6Z3uY71\" target=\"_blank\">https:\/\/documenter.getpostman.com\/view\/220187\/postman-bdd-examples\/6Z3uY71<\/a><\/li>\n<li>Create a full fake REST API with zero coding using json-server<br \/><a href=\"https:\/\/medium.com\/@tmtushar28\/create-a-full-fake-rest-api-with-zero-coding-using-json-server-b3d41cef3da9\" target=\"_blank\">https:\/\/medium.com\/@tmtushar28\/create-a-full-fake-rest-api-with-zero-coding-using-json-server-b3d41cef3da9<\/a><\/li>\n<li>Chai Assertion Library<br \/><a href=\"http:\/\/chaijs.com\/guide\/plugins\/#accessing-utilities\" target=\"_blank\">http:\/\/chaijs.com\/guide\/plugins\/#accessing-utilities<\/a><\/li>\n<li>Unit Test Your JavaScript Using Mocha and Chai<br \/><a href=\"https:\/\/www.sitepoint.com\/unit-test-javascript-mocha-chai\/\" target=\"_blank\">https:\/\/www.sitepoint.com\/unit-test-javascript-mocha-chai\/<\/a><\/li>\n<li>Unit Test Your JavaScript Using Mocha and Chai<br \/><a href=\"https:\/\/www.sitepoint.com\/unit-test-javascript-mocha-chai\/\" target=\"_blank\">https:\/\/www.sitepoint.com\/unit-test-javascript-mocha-chai\/<\/a><\/li>\n<li>Intro to scripts (Scripts in Postman)<br \/><a href=\"https:\/\/www.getpostman.com\/docs\/postman\/scripts\/intro_to_scripts\" target=\"_blank\">https:\/\/www.getpostman.com\/docs\/postman\/scripts\/intro_to_scripts<\/a><\/li>\n<li>Introduction to Postman with examples<br \/><a href=\"https:\/\/automationrhapsody.com\/introduction-postman-examples\/\" target=\"_blank\">https:\/\/automationrhapsody.com\/introduction-postman-examples\/<\/a><\/li>\n<li>API testing using postman\u200a\u2014\u200aAdvance Test Scripts(Sandbox API)<br \/><a href=\"https:\/\/medium.com\/software-testing-guide\/api-testing-using-postman-advance-test-scripts-sandbox-api-481662959d8e\" target=\"_blank\">https:\/\/medium.com\/software-testing-guide\/api-testing-using-postman-advance-test-scripts-sandbox-api-481662959d8e<\/a><\/li>\n<li>Postman - Running a request multiple times with different data sets (API testing)<br \/><a href=\"https:\/\/www.youtube.com\/watch?v=sZKoBQ1HpKw\" target=\"_blank\">https:\/\/www.youtube.com\/watch?v=sZKoBQ1HpKw<\/a><\/li>\n<li>VALIDATE JSON RESPONSE WITH URLS | SCRIPTING POSTMAN<br \/><a href=\"https:\/\/imcodebased.com\/validate-json-response-with-urls-scripting-postman\/\" target=\"_blank\">https:\/\/imcodebased.com\/validate-json-response-with-urls-scripting-postman\/<\/a><\/li>\n<li>Install Newman using NPM<br \/><a href=\"https:\/\/www.npmjs.com\/package\/newman\" target=\"_blank\">https:\/\/www.npmjs.com\/package\/newman<\/a><\/li>\n<li>Automated API Testing and You: A Step-by-Step Tutorial (not bad)<br \/><a href=\"https:\/\/www.qasymphony.com\/blog\/automated-api-testing-tutorial\/\" target=\"_blank\">https:\/\/www.qasymphony.com\/blog\/automated-api-testing-tutorial\/<\/a><\/li>\n<li>Schema Form is a set of AngularJS directives (and a couple of services) to generate Bootstrap 3 ready forms from a JSON Schema<br \/><a href=\"http:\/\/schemaform.io\/\" target=\"_blank\">http:\/\/schemaform.io\/<\/a><\/li>\n<li>Angular Schema Form: Goats, Hipsters, Terminator<br \/><a href=\"https:\/\/www.youtube.com\/watch?v=duBFMipRq2o\" target=\"_blank\">https:\/\/www.youtube.com\/watch?v=duBFMipRq2o<\/a><\/li>\n<li>Data mocking \u2013 Ways to fake a backend (API)<br \/><a href=\"http:\/\/michael-kuehnel.de\/api\/2016\/11\/04\/data-mocking-ways-to-fake-a-backend-api.html\" target=\"_blank\">http:\/\/michael-kuehnel.de\/api\/2016\/11\/04\/data-mocking-ways-to-fake-a-backend-api.html<\/a><\/li>\n<li>Tutorial: Build a REST API for Your Mobile Apps using Node.js<br \/><a href=\"https:\/\/stormpath.com\/blog\/tutorial-build-rest-api-mobile-apps-using-node-js\" target=\"_blank\">https:\/\/stormpath.com\/blog\/tutorial-build-rest-api-mobile-apps-using-node-js<\/a><\/li>\n<li>Mock JSON API Backend with Mirage<br \/><a href=\"https:\/\/emberigniter.com\/mock-json-api-backend-with-mirage\/\" target=\"_blank\">https:\/\/emberigniter.com\/mock-json-api-backend-with-mirage\/<\/a><\/li>\n<li>Quickest Backend API for Ember<br \/><a href=\"https:\/\/emberigniter.com\/quickest-backend-api-for-ember\/\" target=\"_blank\">https:\/\/emberigniter.com\/quickest-backend-api-for-ember\/<\/a><\/li>\n<li>BDD with mocha<br \/><a href=\"https:\/\/mochajs.org\/#bdd\" target=\"_blank\">https:\/\/mochajs.org\/#bdd<\/a><\/li>\n<li>BigstickCarpet on gist<br \/><a href=\"https:\/\/gist.github.com\/BigstickCarpet\" target=\"_blank\">https:\/\/gist.github.com\/BigstickCarpet<\/a><\/li>\n<li>BigstickCarpet on gist<br \/><a href=\"https:\/\/github.com\/BigstickCarpet\/postman-bdd\" target=\"_blank\">https:\/\/github.com\/BigstickCarpet\/postman-bdd<\/a><\/li>\n<li>newman the cli companion for postman<br \/><a href=\"https:\/\/github.com\/postmanlabs\/newman\" target=\"_blank\">https:\/\/github.com\/postmanlabs\/newman<\/a><\/li>\n<li>newman - Readme for migration<br \/><a href=\"https:\/\/github.com\/postmanlabs\/newman\/blob\/develop\/MIGRATION.md\" target=\"_blank\">https:\/\/github.com\/postmanlabs\/newman\/blob\/develop\/MIGRATION.md<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>It is true I have given a title to this post that sounds like a user story of somebody who want to make name dropping.&hellip; <\/p>\n<p class=\"text-center\"><a href=\"https:\/\/flaven.fr\/2018\/03\/api-postman-newman-create-a-quick-api-with-json-server-and-faker-and-then-test-it-with-chai-js-postman-and-newman\/\" class=\"more-link\">Continue reading &rarr; <span class=\"screen-reader-text\">API, Postman, Newman &#8211; Create a quick API with json-server and Faker and then test it with Chai-JS, Postman and Newman<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":11099,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"bf_ai_meta_description":"Build a quick API using json-server and Faker. Test it with Chai-JS, Postman, and Newman for reliable outcomes.","bf_ai_og_title":"API Testing with Postman","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3439,3437,3454,3444,3447,3448,3449,3450,3435,3452],"tags":[2183,2424,2426,226,2425,2423,2322,3508,2317],"class_list":["post-11085","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apis-integration","category-business-case-studies","category-journalism-writing","category-programming-databases","category-technology-trends","category-tools-productivity","category-tutorials-how-to","category-ux-product-design","category-web-development","category-wordpress-cms","tag-api","tag-chai","tag-faker","tag-javascript","tag-json-server","tag-newman","tag-postman","tag-test-automation","tag-tests"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3Vuhl-2SN","jetpack_featured_media_url":"https:\/\/flaven.fr\/wp-content\/uploads\/2018\/03\/tests-with-postman-and-newman_b.jpg","_links":{"self":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/11085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/comments?post=11085"}],"version-history":[{"count":13,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/11085\/revisions"}],"predecessor-version":[{"id":11112,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/posts\/11085\/revisions\/11112"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media\/11099"}],"wp:attachment":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media?parent=11085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/categories?post=11085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/tags?post=11085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}