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

feat: add Paths Object for GET requests on RPC endpoints #42

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Commits on Sep 22, 2024

  1. Configuration menu
    Copy the full SHA
    c1b31a9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    410d83b View commit details
    Browse the repository at this point in the history
  3. fix: prepend schema names for tables/composite types to avoid name co…

    …llisions
    
    References have only the table/composite type name when they belong to the `current_schema`.
    If they do not, then the references have the form `<schema>.<name>`.
    Affected references: Parameter Objects and Schema Objects.
    laurenceisla committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    bb725fd View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. feat: build Component Schemas for non-composite return types

    * These Component Schemas are needed to build the Response Objects for functions.
    * The functions returning composite types are not included since those Component Schemas are already built in another function.
    laurenceisla committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    381e026 View commit details
    Browse the repository at this point in the history
  2. feat: add Parameter Objects for RPC arguments

    * Specifies RPC arguments as query parameters, since they are needed for RPC GET requests.
    * Since these arguments are different from row filters (e.g. `arg=val` not `arg=eq.val`) the original types can be used (except for objects or arrays).
    laurenceisla committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    c47b3f6 View commit details
    Browse the repository at this point in the history
  3. feat: add Response Objects for function return types

    * Adds media type responses for the different return types of functions (RETURNS TABLE, RETURNS <type>, INOUT/OUT arguments).
    * The `application/json` media type returns `array` only when the function is `SET OF`.
    laurenceisla committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    7d824af View commit details
    Browse the repository at this point in the history
  4. feat: add Paths Object for GET requests on RPC endpoints

    * Adds "/rpc/<function_name>" endpoints for valid functions to the Paths Object.
    * Valid functions are those that have no unnamed parameters or have a single unnamed parameter of type `json`,`jsonb`,`text`,`xml`. The rest are invalid.
    * Only `RETURNS SET OF` functions can return `206` to a partial request.
    * Common parameters such as `select`, `or`, etc. can be used when a function RETURNS TABLE, composite types or has INOUT/OUT parameters.
    laurenceisla committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    ee161f2 View commit details
    Browse the repository at this point in the history