Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list and create endpoints aren't correctly matched #130

Open
Pherkel opened this issue Jun 20, 2023 · 0 comments
Open

list and create endpoints aren't correctly matched #130

Pherkel opened this issue Jun 20, 2023 · 0 comments

Comments

@Pherkel
Copy link

Pherkel commented Jun 20, 2023

Api Doc-parser version: 0.16.1

Description
Following the guidelines 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 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 (
    <OpenApiAdmin
      ...
      dataProvider={customDataProvider} />
  );
};

It would be nice to integrate the changes into this main repo.

@Pherkel Pherkel changed the title RegExp not matching list and create endpoints list and create endpoints aren't correctly matched Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant