All URIs are relative to https://api.flipdish.co
| Method | HTTP request | Description |
|---|---|---|
| cloneMenuSection | POST /api/v1.0/menus/{menuId}/sections/{menuSectionId}/clone | Clone menu section |
| createMenuAvailabilityForDay | POST /api/v1.0/menus/{menuId}/sections/{menuSectionId}/availability/times/{dayOfWeek} | Set/update menu section availability hours. |
| createMenuSection | POST /api/v1.0/menus/{menuId}/sections | Create menu section |
| createMenuSectionAvailability | POST /api/v1.0/menus/{menuId}/sections/{menuSectionId}/availability | Create menu availability type |
| deleteMenuSection | DELETE /api/v1.0/menus/{menuId}/sections/{menuSectionId} | Delete menu section |
| deleteMenuSectionImage | DELETE /api/v1.0/menus/{menuId}/sections/{menuSectionId}/image | Delete menu section image |
| getMenuSectionById | GET /api/v1.0/menus/{menuId}/sections/{menuSectionId} | Get menu section by identifier |
| getMenuSections | GET /api/v1.0/menus/{menuId}/sections | Get menu sections |
| menuSectionsSetItemDisplayOrders | POST /api/v1.0/menus/{menuId}/sections/{menuSectionId}/sectionitemdisplayorders | Re-arrange Items within a Section |
| updateMenuSection | POST /api/v1.0/menus/{menuId}/sections/{menuSectionId} | Update menu section |
| uploadMenuSectionImage | POST /api/v1.0/menus/{menuId}/sections/{menuSectionId}/image | Upload menu section image |
RestApiResultMenuSection cloneMenuSection(menuId, menuSectionId)
Clone menu section
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.MenuSectionsApi();
let menuId = 56; // Number | Menu identifier
let menuSectionId = 56; // Number | Menu section identifier
apiInstance.cloneMenuSection(menuId, menuSectionId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| menuId | Number | Menu identifier | |
| menuSectionId | Number | Menu section identifier |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
Object createMenuAvailabilityForDay(menuId, menuSectionId, dayOfWeek, businessHoursPeriod)
Set/update menu section availability hours.
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.MenuSectionsApi();
let menuId = 56; // Number | Menu identifier
let menuSectionId = 56; // Number | Menu section identifier
let dayOfWeek = "dayOfWeek_example"; // String | Day of the week
let businessHoursPeriod = new Flipdish.BusinessHoursPeriodBase(); // BusinessHoursPeriodBase | Menu section active hours, note: DayOfWeek property will be overriden by the path parameter.
apiInstance.createMenuAvailabilityForDay(menuId, menuSectionId, dayOfWeek, businessHoursPeriod, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| menuId | Number | Menu identifier | |
| menuSectionId | Number | Menu section identifier | |
| dayOfWeek | String | Day of the week | |
| businessHoursPeriod | BusinessHoursPeriodBase | Menu section active hours, note: DayOfWeek property will be overriden by the path parameter. |
Object
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml, Data
Object createMenuSection(menuId, menuSection)
Create menu section
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.MenuSectionsApi();
let menuId = 56; // Number | Menu identifier
let menuSection = new Flipdish.MenuSectionBase(); // MenuSectionBase | Menu section
apiInstance.createMenuSection(menuId, menuSection, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| menuId | Number | Menu identifier | |
| menuSection | MenuSectionBase | Menu section |
Object
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml, Data
Object createMenuSectionAvailability(menuId, menuSectionId, menuSectionAvailability)
Create menu availability type
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.MenuSectionsApi();
let menuId = 56; // Number | Menu identifier
let menuSectionId = 56; // Number | Menu section identifier
let menuSectionAvailability = new Flipdish.MenuSectionAvailabilityBase(); // MenuSectionAvailabilityBase | DisplayAlways, DisplayBasedOnTimes, DisplayAlwaysStartCollapsed, DisplayAlwaysStartCollapsedBasedOnTimes
apiInstance.createMenuSectionAvailability(menuId, menuSectionId, menuSectionAvailability, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| menuId | Number | Menu identifier | |
| menuSectionId | Number | Menu section identifier | |
| menuSectionAvailability | MenuSectionAvailabilityBase | DisplayAlways, DisplayBasedOnTimes, DisplayAlwaysStartCollapsed, DisplayAlwaysStartCollapsedBasedOnTimes |
Object
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml, Data
deleteMenuSection(menuId, menuSectionId)
Delete menu section
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.MenuSectionsApi();
let menuId = 56; // Number | Menu identifier
let menuSectionId = 56; // Number | Menu section identifier
apiInstance.deleteMenuSection(menuId, menuSectionId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| menuId | Number | Menu identifier | |
| menuSectionId | Number | Menu section identifier |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
deleteMenuSectionImage(menuId, menuSectionId)
Delete menu section image
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.MenuSectionsApi();
let menuId = 56; // Number | Menu identifier
let menuSectionId = 56; // Number | Menu section identifier
apiInstance.deleteMenuSectionImage(menuId, menuSectionId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| menuId | Number | Menu identifier | |
| menuSectionId | Number | Menu section identifier |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
RestApiResultMenuSection getMenuSectionById(menuId, menuSectionId)
Get menu section by identifier
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.MenuSectionsApi();
let menuId = 56; // Number | Menu identifier
let menuSectionId = 56; // Number | Menu section identifier
apiInstance.getMenuSectionById(menuId, menuSectionId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| menuId | Number | Menu identifier | |
| menuSectionId | Number | Menu section identifier |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data
RestApiArrayResultMenuSection getMenuSections(menuId)
Get menu sections
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.MenuSectionsApi();
let menuId = 56; // Number | Menu identifier
apiInstance.getMenuSections(menuId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| menuId | Number | Menu identifier |
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml, Data
menuSectionsSetItemDisplayOrders(menuId, menuSectionId, displayOrders)
Re-arrange Items within a Section
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.MenuSectionsApi();
let menuId = 56; // Number | Menu identifier
let menuSectionId = 56; // Number | Menu section identifier
let displayOrders = new Flipdish.MenuObjectDisplayOrders(); // MenuObjectDisplayOrders | Item Ids and their new display order
apiInstance.menuSectionsSetItemDisplayOrders(menuId, menuSectionId, displayOrders, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| menuId | Number | Menu identifier | |
| menuSectionId | Number | Menu section identifier | |
| displayOrders | MenuObjectDisplayOrders | Item Ids and their new display order |
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
updateMenuSection(menuId, menuSectionId, menuSection, opts)
Update menu section
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.MenuSectionsApi();
let menuId = 56; // Number | Menu identifier
let menuSectionId = 56; // Number | Menu section identifier
let menuSection = new Flipdish.MenuSectionBase(); // MenuSectionBase | Menu section changes (delta)
let opts = {
'undoAfter': 3.4 // Number | An optional time period, in hours, after which the hide-section operation will be undone.
};
apiInstance.updateMenuSection(menuId, menuSectionId, menuSection, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| menuId | Number | Menu identifier | |
| menuSectionId | Number | Menu section identifier | |
| menuSection | MenuSectionBase | Menu section changes (delta) | |
| undoAfter | Number | An optional time period, in hours, after which the hide-section operation will be undone. | [optional] |
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
RestApiStringResult uploadMenuSectionImage(menuId, menuSectionId, Image)
Upload menu section image
import Flipdish from '@flipdish/api-client-javascript';
let defaultClient = Flipdish.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new Flipdish.MenuSectionsApi();
let menuId = 56; // Number | Menu identifier
let menuSectionId = 56; // Number | Menu section identifier
let Image = "/path/to/file"; // File | Menu section image
apiInstance.uploadMenuSectionImage(menuId, menuSectionId, Image, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| menuId | Number | Menu identifier | |
| menuSectionId | Number | Menu section identifier | |
| Image | File | Menu section image |
- Content-Type: multipart/form-data
- Accept: application/json, text/json, application/xml, text/xml, Data