Hi
I read trough this Topic but still don’t know what to do.
Please help! Thanks Rob
Base config:
Resource ID: sqms_topic
Resource URL: https://api.domain.test/webhook/SQMS/TOPIC/
The “GET Collection” is working
Relative path: READ
Response key path: EMPTY
for example response please look at the end of the messages
The “GET Record” is NOT working
Relative path: READ
Response key path: payload
Query parameter: topic_id
ERORR: A sqms_topic record not found from the response!status: -1
When I lookup the api in the browser
https://api.domain.test/webhook/SQMS/TOPIC/READ?topic_id=8
I get
[{"sqms_topic_id":8,"name":"Topic with ID [8]","sqms_role_id":3}]
I think “Response key path: payload” is wrong but what do i have to enter?
Wehn i leave it Response key path: EMPTY I get the follwowing error “Error: The server responded with a list for a single data record. The response must be an object.status: -1”
Thanks rob
Successfull response example get collection
[
{
“sqms_topic_id”: 1,
“name”: “Topic with ID [1]”,
“sqms_role_id”: 2
},
{
“sqms_topic_id”: 2,
“name”: “Topic with ID [2]”,
“sqms_role_id”: 3
},
{
“sqms_topic_id”: 3,
“name”: “Topic with ID [3]”,
“sqms_role_id”: 4
}
]