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

list and create endpoints aren't correctly matched

Đang mở
#130 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
113
Fork
80
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.