quicktype / glide-api

Create Glide API column endpoints.

Home Page:https://community.glideapps.com/t/please-help-us-test-api-column/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Glide API Columns

Deploy with Vercel

To add an API at /api/hello, create the file api/hello.ts with:

import * as glide from "./glide";

export default glide.api(async (params) => {
  const { name } = params;

  // Check that we got a name
  if (name === undefined) {
    return undefined;
  }

  return {
    type: "string",
    value: `Hello, ${name.value}!`,
  };
});

This defines a Glide API endpoint https://<HOST>/api/hello that takes a text value name and returns the text Hello, {name}!, which you would configure in Glide like:

Deploy

Deploy on Vercel:

$ npx vercel

About

Create Glide API column endpoints.

https://community.glideapps.com/t/please-help-us-test-api-column/


Languages

Language:TypeScript 99.3%Language:HTML 0.7%