Member-only story

How to Develop a REST API on an 8base Workspace

Using serverless functions to stand up REST endpoints on an 8base Workspace

Sebastian Scholl
10 min readNov 25, 2020

By default, the 8base platform auto-generates an extremely powerful GraphQL API that gives you immediate API access to your data. Sometimes though, developers are using a 3rd party service or another tool that doesn’t easily support the authoring and execution of GraphQL queries. Instead, they require that a REST API (or discrete endpoints) be available.

Developing a REST API in 8base can easily be accomplished using the Webhook custom function type. Using Webhooks, a developer can quickly code and deploy serverless functions that become available using traditional HTTP verbs (GET, POST, PUT, DELETE, etc.) and a unique path.

Getting Started Building a REST API on 8base

To get started building a REST API on top of an 8base workspace, you’re going to need to have the following resources created/installed.

  1. An 8base Workspace (Free tier or Paid Plan)
  2. 8base CLI installed (Instructions available here)
  3. A Text Editor or IDE (VS Code, Atom, Sublime, or any other way to write code)

--

--

Sebastian Scholl
Sebastian Scholl

Written by Sebastian Scholl

Wrestling ideas, sharing experiences.

No responses yet