π Live App: https://mockstation.himosoft.com.bd
- π― Instant API Creation: Create mock APIs in seconds
- π API Key Authentication: Secure your endpoints with API keys
- π Pagination Support: Built-in pagination for list endpoints
- π Public & Private Endpoints: Mix of public and authenticated endpoints
- π¨ Modern UI: Beautiful and intuitive user interface
- π Detailed Documentation: Auto-generated API documentation
- π Real-time Updates: Instant feedback on API changes
- Node.js 18.x or later
- npm or yarn
- Clone the repository:
git clone https://github.com/swe-himelrana/himosoft-mockstation.git
cd himosoft-mockstation
- Install dependencies:
npm install
# or
yarn install
- Start the development server:
npm run dev
# or
yarn dev
- Open http://localhost:3000 in your browser.
- Visit the homepage and create a new API instance
- Copy your API key from the generated documentation
- Use the provided endpoints to test your application
# Get all items (public endpoint)
curl "http://localhost:3000/api/public/items/YOUR_INSTANCE_ID?page=1&limit=5"
# Create an item (authenticated endpoint)
curl -X POST "http://localhost:3000/api/items/YOUR_INSTANCE_ID" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"name": "Example Item", "description": "This is an example item"}'
GET /api/public/items/[id]
- Get all items (paginated)
GET /api/items/[id]
- Get all items (paginated)POST /api/items/[id]
- Create a new itemGET /api/items/[id]/[itemId]
- Get a specific itemPUT /api/items/[id]/[itemId]
- Update an itemDELETE /api/items/[id]/[itemId]
- Delete an item
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with Next.js
- Styled with Tailwind CSS
- Icons from Lucide Icons
- Database with LowDB