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

Generic OpenAPI Wrapper for REST APIs #49

Open
kiwicopple opened this issue Dec 29, 2022 · 0 comments
Open

Generic OpenAPI Wrapper for REST APIs #49

kiwicopple opened this issue Dec 29, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@kiwicopple
Copy link
Member

We could use an OpenAPI spec, which many REST services expose as a JSON endpoint:

    create server example_api
      foreign data wrapper example_api_wrapper
      options (
        open_api_url 'https://api.example.com/'
      );

Then we'd map:

    GET -> SELECT (which would map selected columns into a table)
    POST -> INSERT
    PATCH -> UPDATE
    DELETE -> DELETE
@kiwicopple kiwicopple added the enhancement New feature or request label Dec 29, 2022
kamyshdm pushed a commit to dymium-io/supabase-wrappers that referenced this issue Jun 17, 2024
…g-library

checkpoint

Former-commit-id: 362c17a6239fe360005d6be914975b344cc908b6 [formerly 9c1be410185d50f961e499e219b1e362e9c07c0b]
Former-commit-id: d802084023a6625dd8a1cfdf8de18f2de8a1e227
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant