api-platform / api-platform/api-doc-parser

list and create endpoints aren't correctly matched

オープン
#130 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
113
フォーク
80
PR マージ指標
30日以内にマージされた PR はありません

説明

**Api Doc-parser version**: 0.16.1

**Description**
Following the [guidelines](https://github.com/api-platform/api-doc-parser#openapi-support) for creating the endpoint names, I am just getting the operations defined for the `/.../users/{id]` endpoint (e.g. `get`, `put`, `delete`). The operations that are defined for the `.../users` endpoint (`get`, `post`) are not detected by the doc parser.

**Possible Solution**
[This fork](https://github.com/emdgroup/api-doc-parser) takes care of these issues. While you can inject the customized doc-parser in the following way:

```
import { parseOpenApi3Documentation } from '@emdgroup-liquid/api-doc-parser';
import { ApiPlatformAdminDataProvider, openApiDataProvider } from '@api-platform/admin';

const customDataProvider: ApiPlatformAdminDataProvider = openApiDataProvider({
...
apiDocumentationParser: parseOpenApi3Documentation,
});

const Admin = () => {
return (

);
};
```
It would be nice to integrate the changes into this main repo.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。