{
	"info": {
		"_postman_id": "5f73f2a1-460f-4a7a-995b-74ada9bed79e",
		"name": "Catalog Units API",
		"description": "Complete Units Catalog API Collection - Manage units, unit categories, and unit conversions (15 endpoints total)",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "50681087",
		"_collection_link": "https://speeding-station-761692.postman.co/workspace/749708e5-00c2-41b9-8163-eb8de19b77f2/collection/50681087-5f73f2a1-460f-4a7a-995b-74ada9bed79e?action=share&source=collection_link&creator=50681087"
	},
	"item": [
		{
			"name": "Units",
			"item": [
				{
					"name": "List Units",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/catalog/units?page=1&per_page=15",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"catalog",
								"units"
							],
							"query": [
								{
									"key": "page",
									"value": "1"
								},
								{
									"key": "per_page",
									"value": "15"
								},
								{
									"key": "unit_category_id",
									"value": "",
									"disabled": true
								},
								{
									"key": "is_base",
									"value": "",
									"disabled": true
								},
								{
									"key": "search",
									"value": "",
									"disabled": true
								}
							]
						},
						"description": "Retrieve all units with pagination and optional filtering by unit_category_id, is_base, or search by code/name/symbol"
					},
					"response": []
				},
				{
					"name": "Create Unit",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"unit_category_id\": 1,\r\n    \"code\": \"kg2\",\r\n    \"name\": \"Kilogram2222\",\r\n    \"symbol\": \"kg\",\r\n    \"is_base\": true\r\n}"
						},
						"url": {
							"raw": "{{BASE_URL}}/catalog/units",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"catalog",
								"units"
							]
						},
						"description": "Create a new unit"
					},
					"response": []
				},
				{
					"name": "Get Unit",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/catalog/units/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"catalog",
								"units",
								"1"
							]
						},
						"description": "Retrieve a specific unit"
					},
					"response": []
				},
				{
					"name": "Update Unit",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"unit_category_id\": 1,\r\n    \"code\": \"kg2update\",\r\n    \"name\": \"Kilogram (Updated)\",\r\n    \"symbol\": \"KGGG\",\r\n    \"is_base\": true\r\n}"
						},
						"url": {
							"raw": "{{BASE_URL}}/catalog/units/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"catalog",
								"units",
								"1"
							]
						},
						"description": "Update an existing unit"
					},
					"response": []
				},
				{
					"name": "Delete Unit",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/catalog/units/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"catalog",
								"units",
								"1"
							]
						},
						"description": "Delete (soft-delete) a unit"
					},
					"response": []
				}
			],
			"description": "Unit management endpoints (5 endpoints)"
		},
		{
			"name": "Unit Categories",
			"item": [
				{
					"name": "List Unit Categories",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/catalog/unit-categories?page=1&per_page=15",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"catalog",
								"unit-categories"
							],
							"query": [
								{
									"key": "page",
									"value": "1"
								},
								{
									"key": "per_page",
									"value": "15"
								},
								{
									"key": "search",
									"value": "",
									"disabled": true
								}
							]
						},
						"description": "Retrieve all unit categories with pagination and optional search by code or name"
					},
					"response": []
				},
				{
					"name": "Create Unit Category",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"code\": \"weightaaaa\",\r\n    \"name\": \"Weight Unitsaaaa\"\r\n}"
						},
						"url": {
							"raw": "{{BASE_URL}}/catalog/unit-categories",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"catalog",
								"unit-categories"
							]
						},
						"description": "Create a new unit category"
					},
					"response": []
				},
				{
					"name": "Get Unit Category",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/catalog/unit-categories/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"catalog",
								"unit-categories",
								"1"
							]
						},
						"description": "Retrieve a specific unit category"
					},
					"response": []
				},
				{
					"name": "Update Unit Category",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"name\": \"Weight Units (Updated)\"\r\n}"
						},
						"url": {
							"raw": "{{BASE_URL}}/catalog/unit-categories/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"catalog",
								"unit-categories",
								"1"
							]
						},
						"description": "Update an existing unit category"
					},
					"response": []
				},
				{
					"name": "Delete Unit Category",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/catalog/unit-categories/3",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"catalog",
								"unit-categories",
								"3"
							]
						},
						"description": "Delete (soft-delete) a unit category"
					},
					"response": []
				}
			],
			"description": "Unit category management endpoints (5 endpoints)"
		},
		{
			"name": "Unit Conversions",
			"item": [
				{
					"name": "List Unit Conversions",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/catalog/unit-conversions?page=1&per_page=15",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"catalog",
								"unit-conversions"
							],
							"query": [
								{
									"key": "page",
									"value": "1"
								},
								{
									"key": "per_page",
									"value": "15"
								},
								{
									"key": "from_unit_id",
									"value": "",
									"disabled": true
								},
								{
									"key": "to_unit_id",
									"value": "",
									"disabled": true
								}
							]
						},
						"description": "Retrieve all unit conversions with pagination and optional filtering by from_unit_id or to_unit_id"
					},
					"response": []
				},
				{
					"name": "Create Unit Conversion",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"from_unit_id\": 1,\r\n    \"to_unit_id\": 2,\r\n    \"multiplier\": 1000.000000\r\n}"
						},
						"url": {
							"raw": "{{BASE_URL}}/catalog/unit-conversions",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"catalog",
								"unit-conversions"
							]
						},
						"description": "Create a new unit conversion"
					},
					"response": []
				},
				{
					"name": "Get Unit Conversion",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/catalog/unit-conversions/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"catalog",
								"unit-conversions",
								"1"
							]
						},
						"description": "Retrieve a specific unit conversion"
					},
					"response": []
				},
				{
					"name": "Update Unit Conversion",
					"request": {
						"method": "PUT",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\r\n    \"from_unit_id\": 1,\r\n    \"to_unit_id\": 2,\r\n    \"multiplier\": 1000.000000\r\n}"
						},
						"url": {
							"raw": "{{BASE_URL}}/catalog/unit-conversions/1",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"catalog",
								"unit-conversions",
								"1"
							]
						},
						"description": "Update an existing unit conversion"
					},
					"response": []
				},
				{
					"name": "Delete Unit Conversion",
					"request": {
						"method": "DELETE",
						"header": [
							{
								"key": "Authorization",
								"value": "Bearer {{access_token}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "application/json",
								"type": "text"
							}
						],
						"url": {
							"raw": "{{BASE_URL}}/catalog/unit-conversions/2",
							"host": [
								"{{BASE_URL}}"
							],
							"path": [
								"catalog",
								"unit-conversions",
								"2"
							]
						},
						"description": "Delete (soft-delete) a unit conversion"
					},
					"response": []
				}
			],
			"description": "Unit conversion management endpoints (5 endpoints)"
		}
	],
	"variable": [
		{
			"key": "BASE_URL",
			"value": "http://localhost/api/v1",
			"type": "string"
		},
		{
			"key": "access_token",
			"value": "your_access_token_here",
			"type": "string"
		}
	]
}