What problem does it solve?
Swagger link generation automates the creation of direct Swagger UI URLs from API controllers or explicit HTTP endpoints, saving frontend teams time when wiring FE to backend docs.
Core Features & Use Cases
- Direct Link from Controller: derive a Swagger URL from a TypeScript controller file and method.
- Direct Mode: supply HTTP method and path to instantly produce a link.
- FE Integration & Guides: generate a ready-to-share FE integration guide with the --guide flag.
- Spec Auto-detection: automatically determine the API spec (likey-api, likey-admin-api, likey-tasks) and host based on stage.
Quick Start
Use the swagger-link tool to generate a direct link for a specific API, for example:
swagger-link src/api/coupon-controller.ts:fetchMyCouponsV2 --preview=my-coupons-api
Or generate a FE guide for multiple changes:
swagger-link --guide --preview=my-coupons-api