@ondc-sdk/api-server
v0.1.0
Published
Express API server for ONDC portals with direct SDK integration
Readme
@ondc-sdk/api-server
Express API server for ONDC portals with direct SDK integration.
Installation
pnpm add @ondc-sdk/api-serverFeatures
- Express server with health endpoint
- API routes for seller operations
- Agent service integration
- Cart and checkout functionality
Usage
import { createServer } from '@ondc-sdk/api-server';
const app = createServer({
port: 3001,
});
app.listen();API Endpoints
GET /health- Health checkPOST /api/cart- Add item to cartPUT /api/cart/:itemId- Update cart itemPOST /api/checkout- Initiate checkout
License
MIT
