commit 912b59dce0cda73c88058471dcf0f6f9c55e06ef Author: Zhongwei Li Date: Sat Nov 29 17:54:39 2025 +0800 Initial commit diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..bea19c0 --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,12 @@ +{ + "name": "generate-api-docs", + "description": "Generate API documentation for endpoints", + "version": "1.0.0", + "author": { + "name": " Anand Tyagi", + "url": "https://github.com/ananddtyagi" + }, + "commands": [ + "./commands/" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..4b7ab4b --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# generate-api-docs + +Generate API documentation for endpoints diff --git a/commands/generate-api-docs.md b/commands/generate-api-docs.md new file mode 100644 index 0000000..953abd4 --- /dev/null +++ b/commands/generate-api-docs.md @@ -0,0 +1,22 @@ +--- +allowed-tools: Bash(find:*) +description: Generate API documentation for endpoints +--- + +## Context + +- API routes: !`find . -path "*/routes/*" -name "*.js" -o -path "*/api/*" -name "*.js" | head -20` +- Current API files: @$ARGUMENTS + +## Your task + +Generate comprehensive API documentation including: + +1. **Endpoint Overview**: Method, URL, purpose +2. **Parameters**: Query params, path params, request body +3. **Request Examples**: Sample requests with curl +4. **Response Examples**: Success and error responses +5. **Status Codes**: All possible HTTP status codes +6. **Authentication**: Required auth if applicable + +Format as clear, readable documentation that can be used by other developers. \ No newline at end of file diff --git a/plugin.lock.json b/plugin.lock.json new file mode 100644 index 0000000..f23dcf5 --- /dev/null +++ b/plugin.lock.json @@ -0,0 +1,45 @@ +{ + "$schema": "internal://schemas/plugin.lock.v1.json", + "pluginId": "gh:ananddtyagi/claude-code-marketplace:plugins/generate-api-docs", + "normalized": { + "repo": null, + "ref": "refs/tags/v20251128.0", + "commit": "bf07e1a0d5a828e010e7e8a7716e26fb4fb2cc2c", + "treeHash": "ec5726ccb73bbfb3b0669809a1bb2a27940a9166d83e297f42f5114ffd4e9a7b", + "generatedAt": "2025-11-28T10:13:21.069988Z", + "toolVersion": "publish_plugins.py@0.2.0" + }, + "origin": { + "remote": "git@github.com:zhongweili/42plugin-data.git", + "branch": "master", + "commit": "aa1497ed0949fd50e99e70d6324a29c5b34f9390", + "repoRoot": "/Users/zhongweili/projects/openmind/42plugin-data" + }, + "manifest": { + "name": "generate-api-docs", + "description": "Generate API documentation for endpoints", + "version": "1.0.0" + }, + "content": { + "files": [ + { + "path": "README.md", + "sha256": "be11bb4e9959907fb802bedad06afa87d7b681384dc132b1997f5b74295a6319" + }, + { + "path": ".claude-plugin/plugin.json", + "sha256": "573d624c2c738d58efd852432a3b61ac45ea7f691cefbfda014164b90e7a11b7" + }, + { + "path": "commands/generate-api-docs.md", + "sha256": "0a5c5ab6872c54d0d4d05e78d6dc0163ccbe41d1c608250819fff03ff87b85b4" + } + ], + "dirSha256": "ec5726ccb73bbfb3b0669809a1bb2a27940a9166d83e297f42f5114ffd4e9a7b" + }, + "security": { + "scannedAt": null, + "scannerVersion": null, + "flags": [] + } +} \ No newline at end of file