{
	"info": {
		"_postman_id": "ad2ad476-76b0-41f7-a2fb-87c8d27bdb15",
		"name": "BALL-Product-Service",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "3857621"
	},
	"item": [
		{
			"name": "Public",
			"item": [
				{
					"name": "Get Limited Numbers",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{api_uri}}/product/limited/260/DG2018C-P2C-BK",
							"host": [
								"{{api_uri}}"
							],
							"path": [
								"product",
								"limited",
								"260",
								"DG2018C-P2C-BK"
							]
						}
					},
					"response": []
				},
				{
					"name": "Check Limited Number",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{api_uri}}/product/limited/260/DG2018C-P2C-BK/43",
							"host": [
								"{{api_uri}}"
							],
							"path": [
								"product",
								"limited",
								"260",
								"DG2018C-P2C-BK",
								"43"
							]
						}
					},
					"response": []
				},
				{
					"name": "Temporary Reserve Limited Number",
					"request": {
						"method": "POST",
						"header": [],
						"url": {
							"raw": "{{api_uri}}/product/limited/693/helloWorld/1",
							"host": [
								"{{api_uri}}"
							],
							"path": [
								"product",
								"limited",
								"693",
								"helloWorld",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "Parmanently Reserve Limited Number",
					"request": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"order_id\": 1,\r\n    \"order_product_id\":1,\r\n    \"comment\": \"Reserved by API call\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{api_uri}}/product/limited/693/helloWorld/1",
							"host": [
								"{{api_uri}}"
							],
							"path": [
								"product",
								"limited",
								"693",
								"helloWorld",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "getStock",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{api_uri}}/product/stock/693/helloWorld",
							"host": [
								"{{api_uri}}"
							],
							"path": [
								"product",
								"stock",
								"693",
								"helloWorld"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Authenticated",
			"item": [
				{
					"name": "Limited Groups",
					"item": [
						{
							"name": "Create New Group",
							"request": {
								"auth": {
									"type": "apikey",
									"apikey": [
										{
											"key": "value",
											"value": "{{api_key}}",
											"type": "string"
										},
										{
											"key": "key",
											"value": "Auth",
											"type": "string"
										}
									]
								},
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"name\": \"test1\",\r\n    \"range_from\": 1,\r\n    \"range_to\": 1000\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{api_uri}}/product/limited_group",
									"host": [
										"{{api_uri}}"
									],
									"path": [
										"product",
										"limited_group"
									]
								}
							},
							"response": []
						},
						{
							"name": "GetGroups",
							"request": {
								"auth": {
									"type": "apikey",
									"apikey": [
										{
											"key": "value",
											"value": "{{api_key}}",
											"type": "string"
										},
										{
											"key": "key",
											"value": "Auth",
											"type": "string"
										}
									]
								},
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{api_uri}}/product/limited_group",
									"host": [
										"{{api_uri}}"
									],
									"path": [
										"product",
										"limited_group"
									]
								}
							},
							"response": []
						},
						{
							"name": "GetGroupById",
							"request": {
								"auth": {
									"type": "apikey",
									"apikey": [
										{
											"key": "value",
											"value": "{{api_key}}",
											"type": "string"
										},
										{
											"key": "key",
											"value": "Auth",
											"type": "string"
										}
									]
								},
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{api_uri}}/product/limited_group/1",
									"host": [
										"{{api_uri}}"
									],
									"path": [
										"product",
										"limited_group",
										"1"
									]
								}
							},
							"response": []
						}
					]
				},
				{
					"name": "Products",
					"item": [
						{
							"name": "Add Product To Group",
							"request": {
								"auth": {
									"type": "apikey",
									"apikey": [
										{
											"key": "value",
											"value": "{{api_key}}",
											"type": "string"
										},
										{
											"key": "key",
											"value": "Auth",
											"type": "string"
										}
									]
								},
								"method": "POST",
								"header": [],
								"body": {
									"mode": "raw",
									"raw": "{\r\n    \"product_id\": 693,\r\n    \"model\": \"helloWorld\",\r\n    \"limited_group_id\": 10,\r\n    \"quantity\": 100\r\n}",
									"options": {
										"raw": {
											"language": "json"
										}
									}
								},
								"url": {
									"raw": "{{api_uri}}/product/product",
									"host": [
										"{{api_uri}}"
									],
									"path": [
										"product",
										"product"
									]
								}
							},
							"response": []
						},
						{
							"name": "Get Products with Groups",
							"request": {
								"auth": {
									"type": "apikey",
									"apikey": [
										{
											"key": "value",
											"value": "{{api_key}}",
											"type": "string"
										},
										{
											"key": "key",
											"value": "Auth",
											"type": "string"
										}
									]
								},
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{api_uri}}/product/product",
									"host": [
										"{{api_uri}}"
									],
									"path": [
										"product",
										"product"
									]
								}
							},
							"response": []
						},
						{
							"name": "Get Products",
							"request": {
								"auth": {
									"type": "apikey",
									"apikey": [
										{
											"key": "value",
											"value": "{{api_key}}",
											"type": "string"
										},
										{
											"key": "key",
											"value": "Auth",
											"type": "string"
										}
									]
								},
								"method": "GET",
								"header": [],
								"url": {
									"raw": "{{api_uri}}/product/product",
									"host": [
										"{{api_uri}}"
									],
									"path": [
										"product",
										"product"
									]
								}
							},
							"response": []
						},
						{
							"name": "releaseLimitedNumberPermanently",
							"request": {
								"auth": {
									"type": "apikey",
									"apikey": [
										{
											"key": "value",
											"value": "{{api_key}}",
											"type": "string"
										},
										{
											"key": "key",
											"value": "Auth",
											"type": "string"
										}
									]
								},
								"method": "DELETE",
								"header": [],
								"url": {
									"raw": "{{api_uri}}/product/limited_group/10/2",
									"host": [
										"{{api_uri}}"
									],
									"path": [
										"product",
										"limited_group",
										"10",
										"2"
									]
								}
							},
							"response": []
						}
					]
				}
			]
		},
		{
			"name": "LEN",
			"item": [
				{
					"name": "Check Available Number",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{api_uri}}/len/DG2018C-P2C-BK/8",
							"host": [
								"{{api_uri}}"
							],
							"path": [
								"len",
								"DG2018C-P2C-BK",
								"8"
							]
						}
					},
					"response": []
				},
				{
					"name": "Temporary Reserve Number",
					"request": {
						"method": "POST",
						"header": [],
						"url": {
							"raw": "{{api_uri}}/len/DG2018C-P2C-BK/8",
							"host": [
								"{{api_uri}}"
							],
							"path": [
								"len",
								"DG2018C-P2C-BK",
								"8"
							]
						}
					},
					"response": []
				},
				{
					"name": "Parmanently Reserve Number",
					"request": {
						"method": "PUT",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"order_id\": 2,\r\n    \"comment\": \"Reserved by API call\"\r\n}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "{{api_uri}}/len/DM3208B-S1C-BK/502",
							"host": [
								"{{api_uri}}"
							],
							"path": [
								"len",
								"DM3208B-S1C-BK",
								"502"
							]
						}
					},
					"response": []
				},
				{
					"name": "Get Reserved Numbers",
					"request": {
						"method": "GET",
						"header": [],
						"url": {
							"raw": "{{api_uri}}/len/DM3208B-S1C-BK",
							"host": [
								"{{api_uri}}"
							],
							"path": [
								"len",
								"DM3208B-S1C-BK"
							]
						}
					},
					"response": []
				}
			],
			"auth": {
				"type": "apikey",
				"apikey": [
					{
						"key": "value",
						"value": "{{xapi_key}}",
						"type": "string"
					},
					{
						"key": "key",
						"value": "Auth",
						"type": "string"
					}
				]
			},
			"event": [
				{
					"listen": "prerequest",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				},
				{
					"listen": "test",
					"script": {
						"type": "text/javascript",
						"exec": [
							""
						]
					}
				}
			]
		}
	],
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "api_uri",
			"value": "http://localhost"
		},
		{
			"key": "api_key",
			"value": "APITOKEN",
			"type": "string"
		},
		{
			"key": "xapi_key",
			"value": "XAPITOKEN"
		}
	]
}