Skip to content
Vincent Oliveira edited this page Aug 16, 2017 · 3 revisions

Postman

Add this line in your host file

127.0.0.1	test.local

Import this file into postman

{
	"variables": [],
	"info": {
		"name": "Test Tiller",
		"_postman_id": "71599c7b-1b3e-69f2-a66e-0efc43d44f38",
		"description": "",
		"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
	},
	"item": [
		{
			"name": "test1",
			"request": {
				"url": "test.local/test1",
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"list\": [1, 2, 3, 4]\n}"
				},
				"description": ""
			},
			"response": []
		},
		{
			"name": "test2",
			"request": {
				"url": "test.local/test2",
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"list1\": [\"A\", \"B\", \"C\", \"C\", \"C\", \"C\"],\n    \"list2\": [1, 2, 3, 4, 5, 6]\n}"
				},
				"description": ""
			},
			"response": []
		},
		{
			"name": "test3",
			"request": {
				"url": "test.local/test3",
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"matrix\": [\n    [2, 3, 2, 6],\n    [5, 2, 3, 1],\n    [1, 2, 2, 1]\n  ],\n  \"width\": 4,\n  \"height\": 3\n}"
				},
				"description": ""
			},
			"response": []
		},
		{
			"name": "test4",
			"request": {
				"url": "test.local/test4",
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n  \"n\": 10\n}"
				},
				"description": ""
			},
			"response": []
		},
		{
			"name": "test5",
			"request": {
				"url": "test.local/test5",
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json",
						"description": ""
					}
				],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"list\": [50, 2, 1, 9]\n}"
				},
				"description": ""
			},
			"response": []
		},
		{
			"name": "test6",
			"request": {
				"url": "test.local/test6",
				"method": "POST",
				"header": [
					{
						"key": "Content-Type",
						"value": "application/json",
						"description": ""
					}
				],
				"body": {},
				"description": ""
			},
			"response": []
		}
	]
}

Clone this wiki locally