All URIs are relative to https://api.wall.et
| Method | HTTP request | Description |
|---|---|---|
| archive_dining | DELETE /v2/dining/{id} | Archive Dining info |
| create_dining | POST /v2/dining | Create Dining info |
| fetch_all_dining | GET /v2/dining/all | Get all Dining info |
| restore_dining | PATCH /v2/dining/{id} | Restore Dining info |
| update_dining | PUT /v2/dining/{id} | Update Dining info |
Dining archive_dining(id)
Archive Dining info
import wallet
from wallet.models.dining import Dining
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.DiningApi(api_client)
id = 'id_example' # str |
try:
# Archive Dining info
api_response = api_instance.archive_dining(id)
print("The response of DiningApi->archive_dining:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DiningApi->archive_dining: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dining create_dining(wt_dining_create_params)
Create Dining info
import wallet
from wallet.models.dining import Dining
from wallet.models.wt_dining_create_params import WTDiningCreateParams
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.DiningApi(api_client)
wt_dining_create_params = wallet.WTDiningCreateParams() # WTDiningCreateParams |
try:
# Create Dining info
api_response = api_instance.create_dining(wt_dining_create_params)
print("The response of DiningApi->create_dining:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DiningApi->create_dining: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| wt_dining_create_params | WTDiningCreateParams |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object fetch_all_dining(is_archive_included=is_archive_included)
Get all Dining info
import wallet
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.DiningApi(api_client)
is_archive_included = True # bool | (optional)
try:
# Get all Dining info
api_response = api_instance.fetch_all_dining(is_archive_included=is_archive_included)
print("The response of DiningApi->fetch_all_dining:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DiningApi->fetch_all_dining: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| is_archive_included | bool | [optional] |
object
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dining restore_dining(id)
Restore Dining info
import wallet
from wallet.models.dining import Dining
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.DiningApi(api_client)
id = 'id_example' # str |
try:
# Restore Dining info
api_response = api_instance.restore_dining(id)
print("The response of DiningApi->restore_dining:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DiningApi->restore_dining: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Dining update_dining(id, wt_dining_update_params)
Update Dining info
import wallet
from wallet.models.dining import Dining
from wallet.models.wt_dining_update_params import WTDiningUpdateParams
from wallet.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
host = "https://api.wall.et"
)
# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = wallet.DiningApi(api_client)
id = 'id_example' # str |
wt_dining_update_params = wallet.WTDiningUpdateParams() # WTDiningUpdateParams |
try:
# Update Dining info
api_response = api_instance.update_dining(id, wt_dining_update_params)
print("The response of DiningApi->update_dining:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DiningApi->update_dining: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | ||
| wt_dining_update_params | WTDiningUpdateParams |
No authorization required
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 401 | Authentication Failed | - |
| 422 | Validation Failed | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]