Skip to content

Add ability to inject custom API routes into OpenAPI JSON #47

@VeiaG

Description

@VeiaG

Hi! Thanks for this great plugin — it’s super useful.

I needed to include some custom API routes (outside of Payload , custom Next.js routes) in the generated OpenAPI spec. Since this isn’t currently supported, I forked the repo to add the feature myself: https://github.com/VeiaG/payload-oapi

I’m not very experienced with OpenAPI (used Gemini CLI to add this feature), so the implementation isn’t perfect — but it works for my use case.

I’d really appreciate it if something like this could be added to the official plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions