Company
Date Published
Author
Nick Khami
Word count
466
Language
English
Hacker News points
None

Summary

Mintlify has enhanced its documentation capabilities by allowing users to create documentation pages directly at the /api path, aligning URLs with actual API structures for greater clarity and coherence. This update resolves the previous limitation where Mintlify reserved the /api path for internal endpoints, necessitating alternative paths like /api-reference for API documentation. The change became possible through Mintlify's migration from NextJS Pages Router to App Router, which uses explicit file naming to differentiate between API endpoints and documentation pages. This allows API endpoints and documentation to coexist within the same namespace, offering a more intuitive sitemap and streamlined navigation. Users can now structure their documentation to reflect this new capability, making their API references more accessible and aligned with the actual API routes.