All URIs are relative to https://api.flipdish.co
| Method | HTTP request | Description |
|---|---|---|
| addMenuZone | POST /api/v1.0/menus/{menuId}/zones | Adds a new menu zone to a menu. |
| deleteMenuZone | DELETE /api/v1.0/menus/{menuId}/zones/{menuZoneId} | Deletes a menu zone. |
| deleteMenuZoneImage | DELETE /api/v1.0/menus/{menuId}/zones/{menuZoneId}/image | Deletes a menu zone image. |
| flipMenuZones | PUT /api/v1.0/menus/{menuId}/zones/{menuZoneId}/flip/{menuZoneI2} | Flips the order of two menu zones. |
| getMenuZone | GET /api/v1.0/menus/{menuId}/zones/{menuZoneId} | Gets a specific menu zone for a given zone id |
| getMenuZonesForMenuId | GET /api/v1.0/menus/{menuId}/zones | Gets all the menu zones for a menu |
| setMenuSectionMenuZone | PUT /api/v1.0/menus/{menuId}/zones/{menuZoneId}/section/{menuSectionId} | Assigns a zone to a menu section. |
| setMenuZoneDescription | PUT /api/v1.0/menus/{menuId}/zones/{menuZoneId}/description | Sets the description of a menu zone. |
| setMenuZoneName | PUT /api/v1.0/menus/{menuId}/zones/{menuZoneId}/name/{menuZoneName} | Sets the name of a menu zone. |
| updateMenuZone | PUT /api/v1.0/menus/{menuId}/zones/{menuZoneId} | Updates a menu zone. |
| uploadMenuZoneImage | POST /api/v1.0/menus/{menuId}/zones/{menuZoneId}/image | Uploads an image for a menu zone. |
RestApiResultMenuZone addMenuZone(menuId, menuZone)
Adds a new menu zone to a menu.
// Import classes:
//import com.flipdish.apiclient.ApiClient;
//import com.flipdish.apiclient.ApiException;
//import com.flipdish.apiclient.Configuration;
//import com.flipdish.apiclient.auth.*;
//import com.flipdish.apiclient.api.MenuZonesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
MenuZonesApi apiInstance = new MenuZonesApi();
Integer menuId = 56; // Integer | The menu id.
MenuZone menuZone = new MenuZone(); // MenuZone | The object containing the new zone. This is optional and not supplying it will generate an empty default zone.
try {
RestApiResultMenuZone result = apiInstance.addMenuZone(menuId, menuZone);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MenuZonesApi#addMenuZone");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| menuId | Integer | The menu id. | |
| menuZone | MenuZone | The object containing the new zone. This is optional and not supplying it will generate an empty default zone. |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
deleteMenuZone(menuZoneId, menuId)
Deletes a menu zone.
// Import classes:
//import com.flipdish.apiclient.ApiClient;
//import com.flipdish.apiclient.ApiException;
//import com.flipdish.apiclient.Configuration;
//import com.flipdish.apiclient.auth.*;
//import com.flipdish.apiclient.api.MenuZonesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
MenuZonesApi apiInstance = new MenuZonesApi();
Integer menuZoneId = 56; // Integer | The menu zone id.
String menuId = "menuId_example"; // String |
try {
apiInstance.deleteMenuZone(menuZoneId, menuId);
} catch (ApiException e) {
System.err.println("Exception when calling MenuZonesApi#deleteMenuZone");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| menuZoneId | Integer | The menu zone id. | |
| menuId | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
deleteMenuZoneImage(menuZoneId, menuId)
Deletes a menu zone image.
// Import classes:
//import com.flipdish.apiclient.ApiClient;
//import com.flipdish.apiclient.ApiException;
//import com.flipdish.apiclient.Configuration;
//import com.flipdish.apiclient.auth.*;
//import com.flipdish.apiclient.api.MenuZonesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
MenuZonesApi apiInstance = new MenuZonesApi();
Integer menuZoneId = 56; // Integer | The zone Id/
String menuId = "menuId_example"; // String |
try {
apiInstance.deleteMenuZoneImage(menuZoneId, menuId);
} catch (ApiException e) {
System.err.println("Exception when calling MenuZonesApi#deleteMenuZoneImage");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| menuZoneId | Integer | The zone Id/ | |
| menuId | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
flipMenuZones(menuZoneId, menuZoneI2, menuId)
Flips the order of two menu zones.
// Import classes:
//import com.flipdish.apiclient.ApiClient;
//import com.flipdish.apiclient.ApiException;
//import com.flipdish.apiclient.Configuration;
//import com.flipdish.apiclient.auth.*;
//import com.flipdish.apiclient.api.MenuZonesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
MenuZonesApi apiInstance = new MenuZonesApi();
Integer menuZoneId = 56; // Integer | Source.
Integer menuZoneI2 = 56; // Integer | Destination.
String menuId = "menuId_example"; // String |
try {
apiInstance.flipMenuZones(menuZoneId, menuZoneI2, menuId);
} catch (ApiException e) {
System.err.println("Exception when calling MenuZonesApi#flipMenuZones");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| menuZoneId | Integer | Source. | |
| menuZoneI2 | Integer | Destination. | |
| menuId | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
RestApiResultMenuZone getMenuZone(menuId, menuZoneId)
Gets a specific menu zone for a given zone id
// Import classes:
//import com.flipdish.apiclient.ApiClient;
//import com.flipdish.apiclient.ApiException;
//import com.flipdish.apiclient.Configuration;
//import com.flipdish.apiclient.auth.*;
//import com.flipdish.apiclient.api.MenuZonesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
MenuZonesApi apiInstance = new MenuZonesApi();
Integer menuId = 56; // Integer | The menu id.
Integer menuZoneId = 56; // Integer | The menu zone id.
try {
RestApiResultMenuZone result = apiInstance.getMenuZone(menuId, menuZoneId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MenuZonesApi#getMenuZone");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| menuId | Integer | The menu id. | |
| menuZoneId | Integer | The menu zone id. |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
RestApiArrayResultMenuZone getMenuZonesForMenuId(menuId)
Gets all the menu zones for a menu
// Import classes:
//import com.flipdish.apiclient.ApiClient;
//import com.flipdish.apiclient.ApiException;
//import com.flipdish.apiclient.Configuration;
//import com.flipdish.apiclient.auth.*;
//import com.flipdish.apiclient.api.MenuZonesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
MenuZonesApi apiInstance = new MenuZonesApi();
Integer menuId = 56; // Integer | The menu id to load zones for
try {
RestApiArrayResultMenuZone result = apiInstance.getMenuZonesForMenuId(menuId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MenuZonesApi#getMenuZonesForMenuId");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| menuId | Integer | The menu id to load zones for |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
setMenuSectionMenuZone(menuZoneId, menuSectionId, menuId)
Assigns a zone to a menu section.
// Import classes:
//import com.flipdish.apiclient.ApiClient;
//import com.flipdish.apiclient.ApiException;
//import com.flipdish.apiclient.Configuration;
//import com.flipdish.apiclient.auth.*;
//import com.flipdish.apiclient.api.MenuZonesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
MenuZonesApi apiInstance = new MenuZonesApi();
Integer menuZoneId = 56; // Integer | The menu id.
Integer menuSectionId = 56; // Integer | The menu section id.
String menuId = "menuId_example"; // String |
try {
apiInstance.setMenuSectionMenuZone(menuZoneId, menuSectionId, menuId);
} catch (ApiException e) {
System.err.println("Exception when calling MenuZonesApi#setMenuSectionMenuZone");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| menuZoneId | Integer | The menu id. | |
| menuSectionId | Integer | The menu section id. | |
| menuId | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
setMenuZoneDescription(menuZoneId, description, menuId)
Sets the description of a menu zone.
// Import classes:
//import com.flipdish.apiclient.ApiClient;
//import com.flipdish.apiclient.ApiException;
//import com.flipdish.apiclient.Configuration;
//import com.flipdish.apiclient.auth.*;
//import com.flipdish.apiclient.api.MenuZonesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
MenuZonesApi apiInstance = new MenuZonesApi();
Integer menuZoneId = 56; // Integer | The zone id.
String description = "description_example"; // String | The new description. Add as a raw string in the request, without any JSON wrapper.
String menuId = "menuId_example"; // String |
try {
apiInstance.setMenuZoneDescription(menuZoneId, description, menuId);
} catch (ApiException e) {
System.err.println("Exception when calling MenuZonesApi#setMenuZoneDescription");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| menuZoneId | Integer | The zone id. | |
| description | String | The new description. Add as a raw string in the request, without any JSON wrapper. | |
| menuId | String |
null (empty response body)
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
setMenuZoneName(menuZoneId, menuZoneName, menuId)
Sets the name of a menu zone.
// Import classes:
//import com.flipdish.apiclient.ApiClient;
//import com.flipdish.apiclient.ApiException;
//import com.flipdish.apiclient.Configuration;
//import com.flipdish.apiclient.auth.*;
//import com.flipdish.apiclient.api.MenuZonesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
MenuZonesApi apiInstance = new MenuZonesApi();
Integer menuZoneId = 56; // Integer | The menu zone id.
String menuZoneName = "menuZoneName_example"; // String | The new name.
String menuId = "menuId_example"; // String |
try {
apiInstance.setMenuZoneName(menuZoneId, menuZoneName, menuId);
} catch (ApiException e) {
System.err.println("Exception when calling MenuZonesApi#setMenuZoneName");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| menuZoneId | Integer | The menu zone id. | |
| menuZoneName | String | The new name. | |
| menuId | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
updateMenuZone(menuId, menuZoneId, menuZone)
Updates a menu zone.
// Import classes:
//import com.flipdish.apiclient.ApiClient;
//import com.flipdish.apiclient.ApiException;
//import com.flipdish.apiclient.Configuration;
//import com.flipdish.apiclient.auth.*;
//import com.flipdish.apiclient.api.MenuZonesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
MenuZonesApi apiInstance = new MenuZonesApi();
Integer menuId = 56; // Integer | The menu id.
Integer menuZoneId = 56; // Integer | The menu zone id.
MenuZone menuZone = new MenuZone(); // MenuZone | The object containing the updated values.
try {
apiInstance.updateMenuZone(menuId, menuZoneId, menuZone);
} catch (ApiException e) {
System.err.println("Exception when calling MenuZonesApi#updateMenuZone");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| menuId | Integer | The menu id. | |
| menuZoneId | Integer | The menu zone id. | |
| menuZone | MenuZone | The object containing the updated values. |
null (empty response body)
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml
uploadMenuZoneImage(menuZoneId, file, menuId)
Uploads an image for a menu zone.
// Import classes:
//import com.flipdish.apiclient.ApiClient;
//import com.flipdish.apiclient.ApiException;
//import com.flipdish.apiclient.Configuration;
//import com.flipdish.apiclient.auth.*;
//import com.flipdish.apiclient.api.MenuZonesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
MenuZonesApi apiInstance = new MenuZonesApi();
Integer menuZoneId = 56; // Integer | The zone id.
List<HttpPostedFileBase> file = Arrays.asList(new HttpPostedFileBase()); // List<HttpPostedFileBase> | The file to upload.
String menuId = "menuId_example"; // String |
try {
apiInstance.uploadMenuZoneImage(menuZoneId, file, menuId);
} catch (ApiException e) {
System.err.println("Exception when calling MenuZonesApi#uploadMenuZoneImage");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| menuZoneId | Integer | The zone id. | |
| file | List<HttpPostedFileBase> | The file to upload. | |
| menuId | String |
null (empty response body)
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml