All URIs are relative to https://localhost
Method | HTTP request | Description |
---|---|---|
hotelCreate | POST /api/hotel | SeminarCatalog\Rest\Resources\Controller\ResourceController::create |
hotelDelete | DELETE /api/hotel/{id}/{lng} | SeminarCatalog\Rest\Resources\Controller\ResourceController::delete |
hotelGet | GET /api/hotel/{id}/{lng} | SeminarCatalog\Rest\Resources\Controller\ResourceController::get |
hotelList | GET /api/hotel | SeminarCatalog\Rest\Resources\Controller\ResourceController::list |
hotelUpdate | PUT /api/hotel/{id} | SeminarCatalog\Rest\Resources\Controller\ResourceController::update |
Hotel hotelCreate(hotelPost)
SeminarCatalog\Rest\Resources\Controller\ResourceController::create
import {SeminarCatalogApi} from 'seminar_catalog_api';
const apiInstance = new SeminarCatalogApi.HotelApi();
const hotelPost = new SeminarCatalogApi.Hotel(); // Hotel |
apiInstance.hotelCreate(hotelPost).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
hotelPost | Hotel |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Hotel hotelDelete(id, lng)
SeminarCatalog\Rest\Resources\Controller\ResourceController::delete
import {SeminarCatalogApi} from 'seminar_catalog_api';
const apiInstance = new SeminarCatalogApi.HotelApi();
const id = 56; // Number | Numeric identifier for this resource
const lng = 56; // Number | Numeric identifier for this resource
apiInstance.hotelDelete(id, lng).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | Numeric identifier for this resource | |
lng | Number | Numeric identifier for this resource |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Hotel hotelGet(id, lng)
SeminarCatalog\Rest\Resources\Controller\ResourceController::get
import {SeminarCatalogApi} from 'seminar_catalog_api';
const apiInstance = new SeminarCatalogApi.HotelApi();
const id = 56; // Number | Numeric identifier for this resource
const lng = 56; // Number | Numeric identifier for this resource
apiInstance.hotelGet(id, lng).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | Numeric identifier for this resource | |
lng | Number | Numeric identifier for this resource |
No authorization required
- Content-Type: Not defined
- Accept: Not defined
HotelPaginationResult hotelList()
SeminarCatalog\Rest\Resources\Controller\ResourceController::list
import {SeminarCatalogApi} from 'seminar_catalog_api';
const apiInstance = new SeminarCatalogApi.HotelApi();
apiInstance.hotelList().then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: Not defined
Hotel hotelUpdate(id, hotelPut)
SeminarCatalog\Rest\Resources\Controller\ResourceController::update
import {SeminarCatalogApi} from 'seminar_catalog_api';
const apiInstance = new SeminarCatalogApi.HotelApi();
const id = 56; // Number | The resource identifier
const hotelPut = new SeminarCatalogApi.Hotel(); // Hotel |
apiInstance.hotelUpdate(id, hotelPut).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | Number | The resource identifier | |
hotelPut | Hotel |
No authorization required
- Content-Type: Not defined
- Accept: Not defined