techjoomla / com_api-plugins Goto Github PK
View Code? Open in Web Editor NEWPlugins to be used with com_api
Home Page: http://techjoomla.com/rest-api-for-joomla
Plugins to be used with com_api
Home Page: http://techjoomla.com/rest-api-for-joomla
Followup issue for discussions from
#90 (comment)
/index.php?option=com_api&app=articles&resource=article&id=12&format=raw
work fine.
/api/articles/article/12
fail with 404.
Hello. In file plugins\api\articles\article.php, use JFactory::getApplication()->input->get
But, method doesn't work - return 'Title is Missing'
I fix problem, use JFactory::getApplication()->input->json - work perfectly
I want to use user plugin to authenticate Joomla user for mobile app. My Joomla version is 3.6
I have installed com_api and installed user plugin and enabled it
created a key through com_api and tried to access the route
index.php?option=com_api&format=raw&app=users&resource=users&key=8ed6060579d49d6f919447379f5ce0b2
this url give me controller not found error http://prntscr.com/dl75a7
app = users plugin name. not sure if its correct
resource = users not sure what i have to give here
key = the key which i have created through com_api and selected the admin user while creating this key.
Please help me to sort it out. I want to login with Joomla user through my app.
Thanks in advance,
I'm trying to using Articles Plugin but when I using the resource "article" with this structure
host_name/index.php?option=com_api&app=articles&resource=article&format=raw&key=d5d2e3fa64391f11b57a2d16ad67da33
getting error "Record not found". But on site no. of articles are present.
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":{}}
Hey everyone,
After installing the com_api component & the easyblog plugin, we're getting the following error when performing a GET request: "Error: Call to undefined method Joomla\CMS\Document\RawDocument::addHeadLink(): Class 'PostSimpleSchema' not found"
Joomla - v 3.9.0
EasyBlog - v 5.2.9
Api - v 2.2 or 2.3 (downloaded from the TechJoomla site from the v2.3 link, the zip file says v2.3, but installs as v 2.2 as that's what's listed in the api.xml file)
EasyBlog Api plugin v 2.5.0 (though easyblog.xml still says 1.8.5)
Anyone able to get this working on these versions of Joomla & EasyBlog?
Any pointers or direction on getting this fixed?
This is my first exposure to PHP so any help at all would be appreciated.
Thanks!
Hello,
I've seen no release of the article / categories plugins.
I was wondering why ?
I need to read json data from the post body but all the example plugins seem to just read data from the query string.
I could use file_get_contents('php://input') inside my post method but I just wondered if there is a better way ?
Do you have example plugins that read json data from the post body ?
Hello,
I am using the get articles list of the articles plugin without any issues for years.
GET /index.php?option=com_api&app=articles&resource=article&format=raw
As PHP 7.4 is now out of support, we have to move on to PHP 8. But as soon as I switch from 7.4 to 8, I receive an error for this GET request. It seems like some kind of nullpointer exception.
0 - Attempting to assign property "id" on "null"
Are there any plans to fix that or can you tell me how to do so? As soon as I switch back to PHP 7.4 everything is fine again.
API framework is already updated to v3.0.2 but no improvement.
whenever i browse to http://localhost/joomla/index.php?option=com_api&app=content&resource=articles&format=raw
i get the bellow error
Where can i get the content api plugin from?
I am not sure how it sorts by default, but the API do need a sorting param so that the data can be fetched and displayed in proper sequence.
hi, we are using version of easyblog 5.xx
abcdzd.com/index.php?option=com_api&format=raw&app=easyblog&resource=blog&key=594e20f343a7cb69fda2c08d5bca9255&id=357
when we call the link like this there is no respond from the source an we get a blank web page an then
abcdzd.com/index.php?option=com_api&format=raw&app=easyblog&resource=latest&key=594e20f343a7cb69fda2c08d5bca9255
when we call the link like this also we get a respond on a blank web page, what is might be the reason of this situation?
Thank you in advance for your support.
Can I create an article with images?
I have tried putting in HTML image tags, but the HTML gets filtered out.
Hi,
I am getting error-> Call to a member function children() on null, while installing plugins from this repository.
Joomla version - 3.9
php version - 7.0.10
com_api was successfully installed, but all other plugins are throwing this error.
On api request if you are logged in / or you pass a token of not admin user,
the user can add an id of user and get the data information.
If user is not super user or admin should not be possible to search other user id
Hi all and tnx for your work. I'm try to using Articles Plugin (Users & Akeeba it's ok!!!) but when i use the resource "latest" with this structure
P.s.
The Latest News module is correctly enabled. What's the problem???
So the resource article for getting article list or single article take me an empty response.
Please help me.....
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.