The following is a JSON configuration suitable for OCS, which you can copy and use directly:
[ { "url": "http://localhost:8888/api/search?token=Your API Keys", "method": "get", "contentType": "json", "name": "T-Link Question Bank API Platform", "homepage": "http://localhost:8888/", "data": { "title": "${title}", "options": "${options}", "type": "${type}" }, "handler": "return (res)=> res.code === 1 ? [res.question, res.answer] : [res.msg, undefined]" } ]
For more API details, please check the API Docs.