Build REST APIs with Elbia
Create, manage, and deploy RESTful APIs with Elbia's powerful tools and CLI. Start building today.
REST API Basics
Install CLI
npm install -g @elbia/cli
brew install elbia/tap/elbia-cli
elbia --version
Creating Your First REST API
Step 1: Initialize Project
Create new project folder and configure API manifest
elbia new my-rest-api
Endpoints
Create GET/POST endpoints with rate limiting and authentication
Testing
Live testing through CLI or Elbia API explorer
Example: Create API
Sample code to create a basic REST API
// Create a new API import { api } from 'elbia' const myApi = api.create('/todo', { methods: ['GET', 'POST'], authentication: 'bearer', rateLimit: 100 }); // Define endpoints myApi.get('/', (req) => { return db.find('todos'); }); myApi.post('/', (req) => { return db.create('todos', req.body); });