Skip to content

Latest commit

 

History

History
284 lines (191 loc) · 6.95 KB

DiningApi.md

File metadata and controls

284 lines (191 loc) · 6.95 KB

OpenAPI\Client\DiningApi

All URIs are relative to https://api.wall.et, except if the operation defines another base path.

Method HTTP request Description
archiveDining() DELETE /v2/dining/{id} Archive dining
createDining() POST /v2/dining Create dining
fetchAllDining() GET /v2/dining/all Fetch all dining
restoreDining() PATCH /v2/dining/{id} Restore dining
updateDining() PUT /v2/dining/{id} Update dining

archiveDining()

archiveDining($id): \OpenAPI\Client\Model\Dining

Archive dining

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new OpenAPI\Client\Api\DiningApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$id = NULL; // mixed

try {
    $result = $apiInstance->archiveDining($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DiningApi->archiveDining: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id mixed

Return type

\OpenAPI\Client\Model\Dining

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

createDining()

createDining($wt_dining_create_params): \OpenAPI\Client\Model\Dining

Create dining

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new OpenAPI\Client\Api\DiningApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$wt_dining_create_params = new \OpenAPI\Client\Model\WTDiningCreateParams(); // \OpenAPI\Client\Model\WTDiningCreateParams

try {
    $result = $apiInstance->createDining($wt_dining_create_params);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DiningApi->createDining: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
wt_dining_create_params \OpenAPI\Client\Model\WTDiningCreateParams

Return type

\OpenAPI\Client\Model\Dining

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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

fetchAllDining()

fetchAllDining($is_archive_included): mixed

Fetch all dining

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new OpenAPI\Client\Api\DiningApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$is_archive_included = True; // bool

try {
    $result = $apiInstance->fetchAllDining($is_archive_included);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DiningApi->fetchAllDining: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
is_archive_included bool [optional]

Return type

mixed

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

restoreDining()

restoreDining($id): \OpenAPI\Client\Model\Dining

Restore dining

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new OpenAPI\Client\Api\DiningApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$id = NULL; // mixed

try {
    $result = $apiInstance->restoreDining($id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DiningApi->restoreDining: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id mixed

Return type

\OpenAPI\Client\Model\Dining

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

updateDining()

updateDining($id, $wt_dining_update_params): \OpenAPI\Client\Model\Dining

Update dining

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');



$apiInstance = new OpenAPI\Client\Api\DiningApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$id = NULL; // mixed
$wt_dining_update_params = new \OpenAPI\Client\Model\WTDiningUpdateParams(); // \OpenAPI\Client\Model\WTDiningUpdateParams

try {
    $result = $apiInstance->updateDining($id, $wt_dining_update_params);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DiningApi->updateDining: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
id mixed
wt_dining_update_params \OpenAPI\Client\Model\WTDiningUpdateParams

Return type

\OpenAPI\Client\Model\Dining

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

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