{
    "openapi": "3.1.0",
    "info": {
        "title": "Softwire API",
        "version": "1.0.0",
        "description": "REST API for workspace tickets, projects, HRMS, and CRM."
    },
    "servers": [
        {
            "url": "https://softwireapp.in/api/v1"
        }
    ],
    "components": {
        "securitySchemes": {
            "bearerAuth": {
                "type": "http",
                "scheme": "bearer",
                "description": "Workspace API token prefixed with softwire_"
            }
        }
    },
    "security": [
        {
            "bearerAuth": []
        }
    ],
    "paths": {
        "/workspaces/{workspace}/tickets": {
            "get": {
                "summary": "List tickets",
                "parameters": [
                    {
                        "name": "workspace",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Ticket collection"
                    }
                }
            }
        },
        "/workspaces/{workspace}/projects": {
            "get": {
                "summary": "List projects",
                "parameters": [
                    {
                        "name": "workspace",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Project collection"
                    }
                }
            }
        },
        "/workspaces/{workspace}/hrms/employees": {
            "get": {
                "summary": "List HRMS employees",
                "parameters": [
                    {
                        "name": "workspace",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Employee profile collection"
                    }
                }
            }
        },
        "/workspaces/{workspace}/crm/deals": {
            "get": {
                "summary": "List CRM deals",
                "parameters": [
                    {
                        "name": "workspace",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Deal collection"
                    }
                }
            }
        }
    }
}