Documentation

GET customtable/{tablename}

Used for

Getting the content of a specific custom table. In i-Reserve there is the possibility to setup custom tables. This can be usefull to supply more structured data. An example of a customer table might be areas:

id area
1 North France
2 Benelux
3 Eiffel
4 Alps

Authentication

User needs to be logged in - Admin level.
Required right: api_customtable_get

Parameters

Parameter Description Required Example
name name of the table Yes area

Example

Getting the information of table area.

GET api/rest/customtable/area 
Response: {
  "1": {
    "area": "North France",
    "ID": "1"
  },
  "2": {
    "area": "Benelux",
    "ID": "2"
  },
  "3": {
    "area": "Eiffele",
    "ID": "2"
  },
  "4": {
    "area": "Alps",
    "ID": "4"
  }
}