{"repo":"api-platform/api-doc-parser","free":true,"listed":false,"github":"https://github.com/api-platform/api-doc-parser","clone":"git clone https://github.com/api-platform/api-doc-parser.git","description":"Transforms a Hydra API doc in an intermediate representation that can be used for various tasks such as creating smart API clients, scaffolding code or building administration interfaces.","language":"TypeScript","stars":113,"topics":["javascript","api","hydra","api-platform","json-ld","rest-api","rest","openapi","swagger","parser"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"API Doc Parser Effortlessly turn Hydra, Swagger/OpenAPI, and GraphQL specs into actionable data for your tools and apps. --- api-doc-parser is a standalone TypeScript library that parses Hydra, Swagger, OpenAPI, and GraphQL documentation into a unified, intermediate representation. This normalized structure enables smart API clients, code generators, admin interfaces, and more. It integrates seamlessly with the API Platform framework. ✨ Key Features - Unified output – one normalized Api object covering resources, fields, operations, parameters, and relations - TypeScript-first – strict typings for every parsed element - Embedded & referenced resources resolved automatically - Framework integration – easily integrates with the API Platform ecosystem - Supports all major API formats – Hydra, Swagger/OpenAPI v2, OpenAPI v3, and GraphQL 📦 Installation Using NPM: npm install @api-platform/api-doc-parser Using Pnpm: pnpm add @api-platform/api-doc-parser With Yarn: yarn add @api-platform/api-doc-parser Using Bun: bun add @api-platform/api-doc-parser 🚀 Usage Hydra OpenAPI v2 (formerly known as Swagger) OpenAPI v3 GraphQL Type definitions Each parse function returns a Promise that resolves to an object containing the normalized API structure, the raw documentation, and the HTTP status code: OpenAPI 3 Swagger Hydra GraphQL Api Represents the root of the parsed API, containing the entrypoint URL, an optional title, and a list of resources. Resource Describes an API resource (such as a","default_branch":null,"files":null,"tree":[],"storefront":"/r/api-platform","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/api-platform/api-doc-parser/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}