techjoomla / com_api-plugins

Plugins to be used with com_api
http://techjoomla.com/rest-api-for-joomla
41 stars 67 forks source link

Custom API plugin not found #97

Open alxzhdanov opened 1 year ago

alxzhdanov commented 1 year ago

Joomla! 3.10.11

  1. Users API not working.
  2. Article API - working
  3. 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":{}}

vinayak-patil commented 1 year ago

Check you have enabled your Leads API Plugin.