Skip to content

Latest commit

 

History

History
725 lines (556 loc) · 21.2 KB

File metadata and controls

725 lines (556 loc) · 21.2 KB

Flipdish.Api.MenuZonesApi

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.

AddMenuZone

RestApiResultMenuZone AddMenuZone (int? menuId, MenuZone menuZone)

Adds a new menu zone to a menu.

Example

using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;

namespace Example
{
    public class AddMenuZoneExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MenuZonesApi();
            var menuId = 56;  // int? | The menu id.
            var menuZone = new MenuZone(); // MenuZone | The object containing the new zone. This is optional and not supplying it will generate an empty default zone.

            try
            {
                // Adds a new menu zone to a menu.
                RestApiResultMenuZone result = apiInstance.AddMenuZone(menuId, menuZone);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MenuZonesApi.AddMenuZone: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
menuId int? The menu id.
menuZone MenuZone The object containing the new zone. This is optional and not supplying it will generate an empty default zone.

Return type

RestApiResultMenuZone

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteMenuZone

void DeleteMenuZone (int? menuId, int? menuZoneId)

Deletes a menu zone.

Example

using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;

namespace Example
{
    public class DeleteMenuZoneExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MenuZonesApi();
            var menuId = 56;  // int? | Menu id.
            var menuZoneId = 56;  // int? | The menu zone id.

            try
            {
                // Deletes a menu zone.
                apiInstance.DeleteMenuZone(menuId, menuZoneId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MenuZonesApi.DeleteMenuZone: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
menuId int? Menu id.
menuZoneId int? The menu zone id.

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteMenuZoneImage

void DeleteMenuZoneImage (int? menuId, int? menuZoneId)

Deletes a menu zone image.

Example

using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;

namespace Example
{
    public class DeleteMenuZoneImageExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MenuZonesApi();
            var menuId = 56;  // int? | Menu id.
            var menuZoneId = 56;  // int? | The zone Id/

            try
            {
                // Deletes a menu zone image.
                apiInstance.DeleteMenuZoneImage(menuId, menuZoneId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MenuZonesApi.DeleteMenuZoneImage: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
menuId int? Menu id.
menuZoneId int? The zone Id/

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FlipMenuZones

void FlipMenuZones (int? menuId, int? menuZoneId, int? menuZoneI2)

Flips the order of two menu zones.

Example

using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;

namespace Example
{
    public class FlipMenuZonesExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MenuZonesApi();
            var menuId = 56;  // int? | 
            var menuZoneId = 56;  // int? | Source.
            var menuZoneI2 = 56;  // int? | Destination.

            try
            {
                // Flips the order of two menu zones.
                apiInstance.FlipMenuZones(menuId, menuZoneId, menuZoneI2);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MenuZonesApi.FlipMenuZones: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
menuId int?
menuZoneId int? Source.
menuZoneI2 int? Destination.

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetMenuZone

RestApiResultMenuZone GetMenuZone (int? menuId, int? menuZoneId)

Gets a specific menu zone for a given zone id

Example

using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;

namespace Example
{
    public class GetMenuZoneExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MenuZonesApi();
            var menuId = 56;  // int? | The menu id.
            var menuZoneId = 56;  // int? | The menu zone id.

            try
            {
                // Gets a specific menu zone for a given zone id
                RestApiResultMenuZone result = apiInstance.GetMenuZone(menuId, menuZoneId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MenuZonesApi.GetMenuZone: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
menuId int? The menu id.
menuZoneId int? The menu zone id.

Return type

RestApiResultMenuZone

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetMenuZonesForMenuId

RestApiArrayResultMenuZone GetMenuZonesForMenuId (int? menuId)

Gets all the menu zones for a menu

Example

using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;

namespace Example
{
    public class GetMenuZonesForMenuIdExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MenuZonesApi();
            var menuId = 56;  // int? | The menu id to load zones for

            try
            {
                // Gets all the menu zones for a menu
                RestApiArrayResultMenuZone result = apiInstance.GetMenuZonesForMenuId(menuId);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MenuZonesApi.GetMenuZonesForMenuId: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
menuId int? The menu id to load zones for

Return type

RestApiArrayResultMenuZone

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SetMenuSectionMenuZone

void SetMenuSectionMenuZone (int? menuId, int? menuZoneId, int? menuSectionId)

Assigns a zone to a menu section.

Example

using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;

namespace Example
{
    public class SetMenuSectionMenuZoneExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MenuZonesApi();
            var menuId = 56;  // int? | Menu id.
            var menuZoneId = 56;  // int? | The menu id.
            var menuSectionId = 56;  // int? | The menu section id.

            try
            {
                // Assigns a zone to a menu section.
                apiInstance.SetMenuSectionMenuZone(menuId, menuZoneId, menuSectionId);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MenuZonesApi.SetMenuSectionMenuZone: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
menuId int? Menu id.
menuZoneId int? The menu id.
menuSectionId int? The menu section id.

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SetMenuZoneDescription

void SetMenuZoneDescription (int? menuId, int? menuZoneId, string description)

Sets the description of a menu zone.

Example

using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;

namespace Example
{
    public class SetMenuZoneDescriptionExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MenuZonesApi();
            var menuId = 56;  // int? | Menu id.
            var menuZoneId = 56;  // int? | The zone id.
            var description = description_example;  // string | The new description. Add as a raw string in the request, without any JSON wrapper.

            try
            {
                // Sets the description of a menu zone.
                apiInstance.SetMenuZoneDescription(menuId, menuZoneId, description);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MenuZonesApi.SetMenuZoneDescription: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
menuId int? Menu id.
menuZoneId int? The zone id.
description string The new description. Add as a raw string in the request, without any JSON wrapper.

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SetMenuZoneName

void SetMenuZoneName (int? menuId, int? menuZoneId, string menuZoneName)

Sets the name of a menu zone.

Example

using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;

namespace Example
{
    public class SetMenuZoneNameExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MenuZonesApi();
            var menuId = 56;  // int? | Menu id.
            var menuZoneId = 56;  // int? | The menu zone id.
            var menuZoneName = menuZoneName_example;  // string | The new name.

            try
            {
                // Sets the name of a menu zone.
                apiInstance.SetMenuZoneName(menuId, menuZoneId, menuZoneName);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MenuZonesApi.SetMenuZoneName: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
menuId int? Menu id.
menuZoneId int? The menu zone id.
menuZoneName string The new name.

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateMenuZone

void UpdateMenuZone (int? menuId, int? menuZoneId, MenuZone menuZone)

Updates a menu zone.

Example

using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;

namespace Example
{
    public class UpdateMenuZoneExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MenuZonesApi();
            var menuId = 56;  // int? | The menu id.
            var menuZoneId = 56;  // int? | The menu zone id.
            var menuZone = new MenuZone(); // MenuZone | The object containing the updated values.

            try
            {
                // Updates a menu zone.
                apiInstance.UpdateMenuZone(menuId, menuZoneId, menuZone);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MenuZonesApi.UpdateMenuZone: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
menuId int? The menu id.
menuZoneId int? The menu zone id.
menuZone MenuZone The object containing the updated values.

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UploadMenuZoneImage

void UploadMenuZoneImage (int? menuId, int? menuZoneId, List _file)

Uploads an image for a menu zone.

Example

using System;
using System.Diagnostics;
using Flipdish.Api;
using Flipdish.Client;
using Flipdish.Model;

namespace Example
{
    public class UploadMenuZoneImageExample
    {
        public void main()
        {
            // Configure OAuth2 access token for authorization: oauth2
            Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";

            var apiInstance = new MenuZonesApi();
            var menuId = 56;  // int? | Menu id.
            var menuZoneId = 56;  // int? | The zone id.
            var _file = new List<HttpPostedFileBase>(); // List<HttpPostedFileBase> | The file to upload.

            try
            {
                // Uploads an image for a menu zone.
                apiInstance.UploadMenuZoneImage(menuId, menuZoneId, _file);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling MenuZonesApi.UploadMenuZoneImage: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
menuId int? Menu id.
menuZoneId int? The zone id.
_file List<HttpPostedFileBase> The file to upload.

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
  • Accept: application/json, text/json, application/xml, text/xml

[Back to top] [Back to API list] [Back to Model list] [Back to README]