Documentation
Introduction

Introduction

Welcome to Omni Rest! This documentation will help you get started with auto-generating REST APIs from your Prisma schema.

What is Omni Rest?

Omni Rest automatically generates fully-featured RESTful API endpoints from your Prisma schema. With zero configuration, you get:

Quick Example

Instead of writing a dozen controllers, services, and routes for your API, simply wire omni-rest to your server instance. We'll handle everything perfectly!

import express from "express";
import { PrismaClient } from "@prisma/client";
import { expressAdapter } from "omni-rest/express";
 
const app = express();
const prisma = new PrismaClient();
 
app.use(express.json());
// 👇 This single line creates all the routes for you!
app.use("/api", expressAdapter(prisma));
 
app.listen(3000, () => {
  console.log("🚀 API ready at http://localhost:3000/api");
});

This tiny snippet creates a full, robust REST API for all your Prisma models automatically!

Framework Support

Omni Rest is natively framework agnostic but we provide out-of-the-box adapters for the most popular frameworks available:

Next Steps

Explore the rest of the documentation to discover the true power of Omni Rest: