Restaurant Menu API

Access restaurant menu data with our simple and powerful API

Getting Started

Follow these steps to start using our API:

  1. Create an account through our registration page
  2. Log in to your account to get your API key
  3. Use your API key in the request header: x-api-key

API Endpoints

GET /api/menu

Get all menu items

Headers:
{
  "x-api-key": "your-api-key"
}
Response:
{
  "data": [
    {
      "id": 1,
      "nama": "Nasi Goreng",
      "harga": 25000,
      "kategori": "Makanan Utama"
    }
  ]
}
GET /api/menu/:id

Get menu item by ID

Headers:
{
  "x-api-key": "your-api-key"
}
Response:
{
  "id": 1,
  "nama": "Nasi Goreng",
  "harga": 25000,
  "kategori": "Makanan Utama"
}
POST /api/auth/register

Register new user

Request Body:
{
  "username": "john_doe",
  "email": "john@example.com",
  "password": "secure_password"
}
POST /api/auth/login

Login user

Request Body:
{
  "email": "john@example.com",
  "password": "secure_password"
}

Need Help?

For more detailed documentation and support, please visit your dashboard after logging in.

Get Started