All URIs are relative to https://api.flipdish.co
| Method | HTTP request | Description |
|---|---|---|
| createLocationArea | POST /api/v1.0/{appId}/stores/{storeId}/location-areas | |
| getLocationArea | GET /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId} | |
| getLocationAreasForStore | GET /api/v1.0/{appId}/stores/{storeId}/location-areas | |
| updateLocationArea | POST /api/v1.0/{appId}/stores/{storeId}/location-areas/{locationAreaId}/update |
Object createLocationArea(locationAreaInput, appId, storeId)
// 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.LocationAreasApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
LocationAreasApi apiInstance = new LocationAreasApi();
CreateLocationArea locationAreaInput = new CreateLocationArea(); // CreateLocationArea |
String appId = "appId_example"; // String |
Integer storeId = 56; // Integer |
try {
Object result = apiInstance.createLocationArea(locationAreaInput, appId, storeId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LocationAreasApi#createLocationArea");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| locationAreaInput | CreateLocationArea | ||
| appId | String | ||
| storeId | Integer |
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
RestApiResultLocationAreaWithLocations getLocationArea(locationAreaId, appId, storeId)
// 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.LocationAreasApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
LocationAreasApi apiInstance = new LocationAreasApi();
Integer locationAreaId = 56; // Integer |
String appId = "appId_example"; // String |
Integer storeId = 56; // Integer |
try {
RestApiResultLocationAreaWithLocations result = apiInstance.getLocationArea(locationAreaId, appId, storeId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LocationAreasApi#getLocationArea");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| locationAreaId | Integer | ||
| appId | String | ||
| storeId | Integer |
RestApiResultLocationAreaWithLocations
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
RestApiArrayResultLocationAreaWithLocations getLocationAreasForStore(appId, storeId)
// 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.LocationAreasApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
LocationAreasApi apiInstance = new LocationAreasApi();
String appId = "appId_example"; // String |
Integer storeId = 56; // Integer |
try {
RestApiArrayResultLocationAreaWithLocations result = apiInstance.getLocationAreasForStore(appId, storeId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LocationAreasApi#getLocationAreasForStore");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| appId | String | ||
| storeId | Integer |
RestApiArrayResultLocationAreaWithLocations
- Content-Type: Not defined
- Accept: application/json, text/json, application/xml, text/xml
RestApiResultLocationArea updateLocationArea(locationAreaInput, appId, storeId, locationAreaId)
// 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.LocationAreasApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");
LocationAreasApi apiInstance = new LocationAreasApi();
UpdateLocationArea locationAreaInput = new UpdateLocationArea(); // UpdateLocationArea |
String appId = "appId_example"; // String |
Integer storeId = 56; // Integer |
String locationAreaId = "locationAreaId_example"; // String |
try {
RestApiResultLocationArea result = apiInstance.updateLocationArea(locationAreaInput, appId, storeId, locationAreaId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling LocationAreasApi#updateLocationArea");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| locationAreaInput | UpdateLocationArea | ||
| appId | String | ||
| storeId | Integer | ||
| locationAreaId | String |
- Content-Type: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
- Accept: application/json, text/json, application/xml, text/xml