Get Record from Custom Table by ID

GET/api/thirdparty/customtable/{table_name}/{id}

Retrieves a specific record from the custom table by its ID.

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
table_name String Name of the custom database table (exact table name as it exists in the database)
id Number Record ID
curl -X GET "https://yoursite.com/api/thirdparty/customtable/TABLE_NAME/123" \
  -H "authtoken: YOUR_API_TOKEN"

Success-Response:

HTTP/1.1 200 OK
{
  "id": "1",
  "shoenumber": "39",
  "winter": "40"
}

Error-Response (Record Not Found):

HTTP/1.1 404 Not Found
{
  "status": false,
  "message": "Record not found"
}
MethodGET
Path/api/thirdparty/customtable/{table_name}/{id}
GroupThirdparty
Sincev0.3.0
Defined inmodules/api/controllers/Thirdparty.php