SpotOn API Documentation.

From SpotOn Restaurant

Food Courses by Restaurant

    URL: https://www.api.123demo.co.in/api/restaurantFoodCourses
    Method:  POST
  
Object Description
device_token [Required] (Get during app installation)
app_api_key [Required] (Get during app installation)
token [Required] Bearer Token (Get during app login)
restaurant_id [Required]
output JSON formats.
    {
        "success": true,
        "data": {
            "data": [
                {
                    "id": 1,
                    "business_id": 1,
                    "restaurant_id": 40,
                    "food_course_composition_id": 1,
                    "food_course_header": "Single course meal",
                    "price": null,
                    "description": null,
                    "status": 1,
                    "created_at": "2022-02-11 17:59:25",
                    "updated_at": null
                },
                {
                    "id": 2,
                    "business_id": 1,
                    "restaurant_id": 40,
                    "food_course_composition_id": 2,
                    "food_course_header": "Appetizer",
                    "price": null,
                    "description": null,
                    "status": 1,
                    "created_at": "2022-02-11 17:59:31",
                    "updated_at": null
                },
                {
                    "id": 3,
                    "business_id": 1,
                    "restaurant_id": 40,
                    "food_course_composition_id": 3,
                    "food_course_header": "Single course meal",
                    "price": null,
                    "description": null,
                    "status": 1,
                    "created_at": "2022-02-11 17:59:37",
                    "updated_at": null
                },
                {
                    "id": 4,
                    "business_id": 1,
                    "restaurant_id": 40,
                    "food_course_composition_id": 4,
                    "food_course_header": "Salad",
                    "price": 600,
                    "description": null,
                    "status": 1,
                    "created_at": "2022-02-11 17:59:42",
                    "updated_at": null
                },
                {
                    "id": 5,
                    "business_id": 1,
                    "restaurant_id": 40,
                    "food_course_composition_id": 5,
                    "food_course_header": "Main course",
                    "price": 300,
                    "description": null,
                    "status": 1,
                    "created_at": "2022-02-11 18:08:00",
                    "updated_at": null
                }
            ]
        },
        "message": "Get fetched restaurant food courses."
    }
  
    {
        "success": false,
        "message": "Unauthorized",
        "data": "Unauthorized"
    }