{"openapi": "3.0.3", "info": {"title": "UL9 URL Shortener API", "version": "1.0.0", "description": "Create and manage short links, read click analytics."}, "servers": [{"url": "https://api.ul9.me"}], "components": {"securitySchemes": {"bearer": {"type": "http", "scheme": "bearer"}}}, "security": [{"bearer": []}], "paths": {"/api/v1/links": {"get": {"summary": "List links", "responses": {"200": {"description": "OK"}}}, "post": {"summary": "Create link", "requestBody": {"required": true, "content": {"application/json": {"schema": {"type": "object", "required": ["url"], "properties": {"url": {"type": "string"}, "alias": {"type": "string"}, "domain": {"type": "string"}, "expiry_days": {"type": "integer"}, "max_clicks": {"type": "integer"}, "password": {"type": "string"}}}}}}, "responses": {"201": {"description": "Created"}, "422": {"description": "Invalid"}}}}, "/api/v1/links/{id}": {"patch": {"summary": "Update link", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer"}}], "responses": {"200": {"description": "OK"}}}, "delete": {"summary": "Disable link", "parameters": [{"name": "id", "in": "path", "required": true, "schema": {"type": "integer"}}], "responses": {"200": {"description": "OK"}}}}, "/api/v1/stats": {"get": {"summary": "Account stats", "responses": {"200": {"description": "OK"}}}}, "/api/v1/analytics": {"get": {"summary": "Analytics breakdown", "responses": {"200": {"description": "OK"}}}}}}