@hustle-together/api-dev-tools 3.12.3 → 3.12.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,35 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [3.12.10] - 2025-12-28
6
+
7
+ ### Added
8
+
9
+ - **TypeDoc Integration** - Generate API documentation from TSDoc comments
10
+ - `pnpm typedoc` script to generate Markdown docs
11
+ - `pnpm typedoc:watch` for development mode
12
+ - `templates/typedoc.json` configuration template
13
+ - Runs during Phase 13 (Documentation)
14
+
15
+ - **API Showcase Example Requests** - Pre-built, runnable examples in the testing UI
16
+ - Example selector UI with clickable buttons
17
+ - Auto-fills query parameters when clicked
18
+ - "Copy curl" button for each example
19
+ - Examples auto-generated from Zod schema parameters
20
+
21
+ - **Enhanced extract-schema-docs.cjs** - Generates working examples from schemas
22
+ - Detects required params, enums, and defaults
23
+ - Builds query strings and curl commands
24
+ - Outputs `examples` section for registry.json
25
+
26
+ ### Fixed
27
+
28
+ - **APIModal 404 errors** - Fixed endpoint path building for action-based APIs
29
+ - Action-based APIs now use query params (`/api/v2/unsplash?action=search`)
30
+ - No longer incorrectly builds sub-paths (`/api/v2/unsplash/search`)
31
+
32
+ ---
33
+
5
34
  ## [1.0.1] - 2025-12-28
6
35
 
7
36
  ### Fixed
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # API Development Tools v1.0.0
1
+ # API Development Tools v3.12.10
2
2
 
3
3
  ```
4
4
  ╔═══════════════════════════════════════════════════════════════╗
@@ -183,6 +183,63 @@ Notifications include:
183
183
 
184
184
  ---
185
185
 
186
+ ## API Showcase
187
+
188
+ Interactive documentation and testing UI for all your APIs:
189
+
190
+ ```bash
191
+ # Access at: http://localhost:3000/api-showcase
192
+ ```
193
+
194
+ **Features:**
195
+ - Grid view of all registered APIs with search and filtering
196
+ - Click any API to open interactive testing modal
197
+ - **Example Requests** - Pre-built, runnable examples that auto-fill query params
198
+ - **Try It** - Live API testing with real responses
199
+ - **Curl Examples** - Copy working curl commands
200
+ - **Documentation** - File locations, schemas, parameters
201
+
202
+ ### How Examples Work
203
+
204
+ Examples are generated from your Zod schema parameters during Phase 13 (Documentation):
205
+
206
+ ```json
207
+ // In registry.json - auto-generated from schema
208
+ "endpoints": {
209
+ "search": {
210
+ "params": [...],
211
+ "examples": {
212
+ "basic": {
213
+ "description": "Basic search request",
214
+ "query": "action=search&query=nature",
215
+ "curl": "curl -X GET 'http://localhost:3000/api/v2/unsplash?action=search&query=nature'"
216
+ }
217
+ }
218
+ }
219
+ }
220
+ ```
221
+
222
+ The showcase reads examples from `registry.json` and displays clickable buttons that auto-fill the request.
223
+
224
+ ---
225
+
226
+ ## TypeDoc Integration
227
+
228
+ Generate API documentation from TSDoc comments:
229
+
230
+ ```bash
231
+ pnpm typedoc # Generate docs to docs/api/
232
+ pnpm typedoc:watch # Watch mode for development
233
+ ```
234
+
235
+ TypeDoc runs during **Phase 13 (Documentation)** and generates Markdown documentation from:
236
+ - `src/lib/schemas/*.ts` - Zod schemas with TSDoc comments
237
+ - `src/app/api/**/*.ts` - API route handlers
238
+
239
+ Configuration: `typedoc.json` (installed by the CLI)
240
+
241
+ ---
242
+
186
243
  ## Additional Commands
187
244
 
188
245
  ### TDD Workflow