This repository contains an API implementation for interacting with Rollbase, designed to facilitate various operations and integrations with Rollbase applications.
The Rollbase API simplifies communication with Rollbase applications by providing endpoints and functionalities to manage Rollbase resources programmatically.
- Authentication with Rollbase
- Retrieve, create, update, and delete records in Rollbase applications
- Perform operations specific to Rollbase application customization and configurations
-
Clone the repository:
git clone https://github.com/dhruvil-kathiriya/Rollbase-API.git
-
Navigate to the project directory:
cd Rollbase-API
-
Install dependencies:
npm install
Before using the Rollbase API, you need to set up configuration details for Rollbase authentication. Create a .env file in the root directory and add the following:
SESSION_SECRET = your_SESSION_SECRET
SMTP_USER = your_smtp_username
SMTP_PASS = your_smtp_password
Replace your_rollbase_base_url, your_rollbase_username, and your_rollbase_password with your Rollbase base URL, username, and password.
After setting up the configuration, start the server:
npm start
The API endpoints will be accessible at http://localhost:8003.
The Rollbase API provides the following endpoints:
POST /auth
: Authenticate with RollbaseGET /records
: Retrieve all recordsGET /records/:id
: Retrieve a record by IDPOST /records
: Create a new recordPUT /records/:id
: Update a record by IDDELETE /records/:id
: Delete a record by ID
- Node.js
- Express.js
- MongoDB
Contributions are welcome! If you encounter any issues or have suggestions for improvements, feel free to open an issue or create a pull request.
This project is licensed under the MIT License