{
  "info": {
    "_postman_id": "scope-of-work-api-collection",
    "name": "Scope of Work API - CRUD Operations",
    "description": "Complete CRUD API for managing Maintenance Scopes of Work",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "12345"
  },
  "item": [
    {
      "name": "Scope of Work Operations",
      "item": [
        {
          "name": "Get All Scopes of Work",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{BASE_URL}}/maintenance/scopes-of-work?page=1&per_page=15",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "maintenance",
                "scopes-of-work"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1"
                },
                {
                  "key": "per_page",
                  "value": "15"
                }
              ]
            },
            "description": "Get all scopes of work with pagination"
          },
          "response": []
        },
        {
          "name": "Get Active Scopes of Work",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{BASE_URL}}/maintenance/scopes-of-work/active?page=1&per_page=15",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "maintenance",
                "scopes-of-work",
                "active"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1"
                },
                {
                  "key": "per_page",
                  "value": "15"
                }
              ]
            },
            "description": "Get all active scopes of work with pagination"
          },
          "response": []
        },
        {
          "name": "Search Scopes of Work",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{BASE_URL}}/maintenance/scopes-of-work/search?q=electrical&page=1&per_page=15",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "maintenance",
                "scopes-of-work",
                "search"
              ],
              "query": [
                {
                  "key": "q",
                  "value": "electrical",
                  "description": "Search query - searches in name and description"
                },
                {
                  "key": "page",
                  "value": "1"
                },
                {
                  "key": "per_page",
                  "value": "15"
                }
              ]
            },
            "description": "Search scopes of work by name or description"
          },
          "response": []
        },
        {
          "name": "Create Scope of Work",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Electrical Maintenance\",\n  \"description\": \"All electrical system maintenance and repairs including wiring, circuit breakers, and power distribution\",\n  \"is_active\": true\n}"
            },
            "url": {
              "raw": "{{BASE_URL}}/maintenance/scopes-of-work",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "maintenance",
                "scopes-of-work"
              ]
            },
            "description": "Create a new scope of work"
          },
          "response": []
        },
        {
          "name": "Create Scope of Work - Plumbing",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Plumbing Services\",\n  \"description\": \"Water supply, drainage systems, pipe repairs, fixture installation and maintenance\",\n  \"is_active\": true\n}"
            },
            "url": {
              "raw": "{{BASE_URL}}/maintenance/scopes-of-work",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "maintenance",
                "scopes-of-work"
              ]
            },
            "description": "Create a new scope of work for plumbing"
          },
          "response": []
        },
        {
          "name": "Create Scope of Work - HVAC",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"HVAC Systems\",\n  \"description\": \"Heating, ventilation, air conditioning maintenance, filter replacement, system optimization\",\n  \"is_active\": true\n}"
            },
            "url": {
              "raw": "{{BASE_URL}}/maintenance/scopes-of-work",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "maintenance",
                "scopes-of-work"
              ]
            },
            "description": "Create a new scope of work for HVAC"
          },
          "response": []
        },
        {
          "name": "Get Scope of Work by ID",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{BASE_URL}}/maintenance/scopes-of-work/1",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "maintenance",
                "scopes-of-work",
                "1"
              ]
            },
            "description": "Get a specific scope of work by ID"
          },
          "response": []
        },
        {
          "name": "Update Scope of Work",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Electrical Maintenance - Updated\",\n  \"description\": \"All electrical system maintenance and repairs including wiring, circuit breakers, power distribution, and emergency lighting\",\n  \"is_active\": true\n}"
            },
            "url": {
              "raw": "{{BASE_URL}}/maintenance/scopes-of-work/1",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "maintenance",
                "scopes-of-work",
                "1"
              ]
            },
            "description": "Update a scope of work"
          },
          "response": []
        },
        {
          "name": "Partial Update Scope of Work",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"description\": \"Updated description for electrical maintenance\"\n}"
            },
            "url": {
              "raw": "{{BASE_URL}}/maintenance/scopes-of-work/1",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "maintenance",
                "scopes-of-work",
                "1"
              ]
            },
            "description": "Partially update a scope of work (only provided fields)"
          },
          "response": []
        },
        {
          "name": "Toggle Scope of Work Status",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{BASE_URL}}/maintenance/scopes-of-work/1/toggle-status",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "maintenance",
                "scopes-of-work",
                "1",
                "toggle-status"
              ]
            },
            "description": "Toggle the active/inactive status of a scope of work"
          },
          "response": []
        },
        {
          "name": "Delete Scope of Work",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json",
                "type": "text"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{access_token}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{BASE_URL}}/maintenance/scopes-of-work/1",
              "host": [
                "{{BASE_URL}}"
              ],
              "path": [
                "maintenance",
                "scopes-of-work",
                "1"
              ]
            },
            "description": "Delete a scope of work"
          },
          "response": []
        }
      ]
    }
  ],
  "variable": [
    {
      "key": "BASE_URL",
      "value": "http://localhost:8000/api",
      "type": "string"
    },
    {
      "key": "token",
      "value": "",
      "type": "string"
    }
  ]
}
