Try to create myself plugin like example and article plugin
My request via Telerik Fiddler
POST http://localhost/jcb3/index.php?option=com_api&app=leads&resource=lead&format=raw HTTP/1.1 X-Authorization: Bearer d0e6be8e9ae1c3d3397ef78a19af7b52 Content-Type: application/x-www-form-urlencoded Host: localhost
Answer:
HTTP/1.1 200 OK Date: Mon, 12 Dec 2022 09:51:23 GMT Server: Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.4.2 X-Powered-By: PHP/7.4.2 Set-Cookie: 67ba58e1057721e791387d048636f7d0=1cmqg6oi1cevn35lt9p60bovgn; path=/; HttpOnly status: 404 Content-Length: 457 Content-Type: application/json <br /> <b>Warning</b>: Header to delete may not contain colon. in <b>C:\xampp\htdocs\jcb3\components\com_api\controllers\http.php</b> on line <b>182</b><br /> <br /> <b>Warning</b>: Header to delete may not contain colon. in <b>C:\xampp\htdocs\jcb3\components\com_api\controllers\http.php</b> on line <b>182</b><br /> {"err_msg":"Leads API Plugin not found, Leads is probably not installed","err_code":400,"response_id":"","api":"","version":"","data":{}}
Joomla! 3.10.11
POST http://localhost/jcb3/index.php?option=com_api&app=leads&resource=lead&format=raw HTTP/1.1 X-Authorization: Bearer d0e6be8e9ae1c3d3397ef78a19af7b52 Content-Type: application/x-www-form-urlencoded Host: localhost
Answer:
HTTP/1.1 200 OK Date: Mon, 12 Dec 2022 09:51:23 GMT Server: Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.4.2 X-Powered-By: PHP/7.4.2 Set-Cookie: 67ba58e1057721e791387d048636f7d0=1cmqg6oi1cevn35lt9p60bovgn; path=/; HttpOnly status: 404 Content-Length: 457 Content-Type: application/json <br /> <b>Warning</b>: Header to delete may not contain colon. in <b>C:\xampp\htdocs\jcb3\components\com_api\controllers\http.php</b> on line <b>182</b><br /> <br /> <b>Warning</b>: Header to delete may not contain colon. in <b>C:\xampp\htdocs\jcb3\components\com_api\controllers\http.php</b> on line <b>182</b><br /> {"err_msg":"Leads API Plugin not found, Leads is probably not installed","err_code":400,"response_id":"","api":"","version":"","data":{}}