Get All Records from Custom Table
GET/api/thirdparty/customtable/{table_name}
Retrieves all records from the specified custom table. The table name should be the exact name as it exists in the database (no prefix will be added).
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| table_name | String | Name of the custom database table (exact table name as it exists in the database) |
curl -X GET "https://yoursite.com/api/thirdparty/customtable/TABLE_NAME" \
-H "authtoken: YOUR_API_TOKEN" Success-Response:
HTTP/1.1 200 OK
[
{
"id": "1",
"shoenumber": "39",
"winter": "40"
},
{
"id": "2",
"shoenumber": "41",
"winter": "42"
}
] Error-Response (Table Not Found):
HTTP/1.1 404 Not Found
{
"status": false,
"message": "Table 'giorgos' does not exist"
}