/restaurant/categories

Generally, /restaurant/get is used to retrieve all data related to a restaurant. In some cases, particularly with lightweight websites, implementing local storage to store and handle data of returned by /restaurant/get is too much, this action can be used to fetch this data on demand.

/restaurant/categories/list

This action can be used fetch list of categories of a restaurant, without any products.

Request structure

The structure is following:

POST nameValueRequired?
restaurant_idintegerYes

Response

[
  {
    "id":"4041",
    "name":"Pizzat",
    "comment":"A number that can be used to sort categories to predefined order",
    "running_number":"1",
    "description":"here should be some useful data, but looks like it’s just most of time empty"
  }
]

Expectable errors

See error conventions section for explanation how error system works.

Label Additional data Description
NO_RESTAURANT_IDNoneTried to get restaurant’s data without restaurant id. That won’t do.
INVALID_RESTAURANT_IDNoneThen try to supply real id.

/restaurant/categories/get

This action can be used fetch categories with products, ingredients and other related information for a restaurant.

Request structure

The structure is following:

POST nameValueRequired?
restaurant_idintegerYes
category_idintegerYes

Response

{
  "id":"4041",
  "name":"Pizzat",
  "comment":"A number that can be used to sort categories to predefined order"
  "running_number":"1",
  "description":"here should be some useful data, but looks like it’s just most of time empty",
  "products":[
    "See Products section below"
  ],
}

Products

Products data presented here is same as documented at /restaurant/product.

Expectable errors

See error conventions section for explanation how error system works.

Label Additional data Description
NO_RESTAURANT_IDNoneTried to get restaurant’s data without restaurant id. That won’t do.
INVALID_RESTAURANT_IDNoneThen try to supply real id.
INVALID_CATEGORY_IDNoneCategory id you tried to request data for is invalid.