@@ -55,8 +55,8 @@ Using [Bun](https://bun.sh/):
5555``` javascript
5656import { parseHydraDocumentation } from " @api-platform/api-doc-parser" ;
5757
58- parseHydraDocumentation ( " https://demo.api-platform.com " ). then (( { api }) =>
59- console . log ( api) ,
58+ const { api , response , status } = await parseHydraDocumentation (
59+ " https://demo. api-platform.com " ,
6060);
6161```
6262
@@ -65,8 +65,8 @@ parseHydraDocumentation("https://demo.api-platform.com").then(({ api }) =>
6565``` javascript
6666import { parseSwaggerDocumentation } from " @api-platform/api-doc-parser" ;
6767
68- parseSwaggerDocumentation ( " https://demo. api-platform.com/docs.json " ). then (
69- ({ api }) => console . log ( api) ,
68+ const { api , response , status } = await parseSwaggerDocumentation (
69+ " https://demo. api-platform.com/docs.json " ,
7070);
7171```
7272
@@ -75,18 +75,18 @@ parseSwaggerDocumentation("https://demo.api-platform.com/docs.json").then(
7575``` javascript
7676import { parseOpenApi3Documentation } from " @api-platform/api-doc-parser" ;
7777
78- parseOpenApi3Documentation (
78+ const { api , response , status } = await parseOpenApi3Documentation (
7979 " https://demo.api-platform.com/docs.jsonopenapi?spec_version=3.0.0" ,
80- ). then (({ api }) => console . log (api)) ;
80+ );
8181```
8282
8383** GraphQL**
8484
8585``` javascript
8686import { parseGraphQl } from " @api-platform/api-doc-parser" ;
8787
88- parseGraphQl ( " https://demo.api-platform.com/graphql " ). then (( { api }) =>
89- console . log ( api) ,
88+ const { api , response } = await parseGraphQl (
89+ " https://demo. api-platform.com/graphql " ,
9090);
9191```
9292
0 commit comments