Questions tagged [restful-api]

A RESTful API (or REST API) is an application program interface (API) that uses HTTP requests to access and use data according to a protocol called REST (REpresentational State Transfer).

Filter by
Sorted by
Tagged with
6
votes
1answer
3k views

How to use com_api plugin for REST?

I have installed the com_api component and plugin from the official site for REST calls. I should authenticate user login with a web service at another domain using REST POST. How should I do it? I ...
5
votes
3answers
6k views

Creating an API for a Joomla extension

I need to create an API so an external client can perform actions on my custom extensions database table. What would be the right approach? Should I use https://api.joomla.org/cms-3/ for this? How?! ...
5
votes
2answers
2k views

RESTful API to manage article

We have an application which collaboratively collects data from authors. We want to upload curated content to different joomla powered sites. The current application is built on Ruby on Rails. Does ...
3
votes
4answers
4k views

What is the best way to create REST/SOAP/JSON Web Services for Joomla?

If I have to create Web Services (REST/SOAP APIs) for Joomla based website. I have MySQL DataBase running with Joomla website and I wanted to create mobile apps for that. By using same Database how ...
3
votes
2answers
177 views

Crawling Joomla websites without parsing website's html

Nowadays many crawlers are using the REST Api features of most CMSs, to be able to crawl websites fast. WordPress and Drupal have their own REST interfaces so indexing any WordPress website is a ...
2
votes
1answer
1k views

Model / View pulling data from external API(s)

I have a model pulling data from two external API's, concatenating the returned arrays, and a view template that displays it. I have a sub-view that will need only one of the API's. So my question ...
2
votes
1answer
30 views

Can Joomla control access to a separate API which is behind a reverse proxy?

I have a joomla site and wish to run a piece of vanilla Java-script (that I wrote) on this site. The java script requires access to an API (which I have made). I would much rather not have to ...
2
votes
2answers
2k views

How to leverage external JSON REST API in Joomla 3.5.1 after user login?

I need to integrate a Joomla website with a third party REST API. Let me try to clarify what I'm trying to do. Ideally when a user logs on to the Joomla website once they authenticate they will also ...
2
votes
1answer
46 views

Are custom fields updatable using joomla 4 api?

Simply put when using the API to update a custom field of an article, the new information is not successfully passed through. Furthermore, the original contents are deleted from the field. The ...
2
votes
1answer
71 views

SEF URL Broken Image Links When Fetching API Results

Using Joomla 3.9.8 I'm using the fetch() api in order to retrieve some data from a remote API. When I have the api results I'm displaying them in html elements. The API returns various values, one ...
2
votes
1answer
212 views

Accessing ajax/REST based php api

Someone built a site using joomla and third party plugin RS Forms Pro and created a page where a client could configure and purchase a product (via stripe). But they have asked me to write some ...
2
votes
2answers
35 views

API - get menu items from specific menu

I can't guess how to get menu items from a specific menu via API. I use: https://github.com/alexandreelise/j4x-api-collection https://documenter.getpostman.com/view/9617873/Szzj9yJy#6ac385da-724b-4b5b-...
1
vote
1answer
71 views

Techjoomla API using same ACL as site

First Context: I am making a JS application that needs to call an api. The application is a form full of multiple choice select elements. Depending on the selected elements data is sent to the api. ...
1
vote
1answer
53 views

J4 API - There are two variables for Article Text, why do neither work on PATCH?

While working with the new Joomla 4 web services API. The Article text does not update. Additionally, as per the documentation, when creating an article via API the article text variable is ...
1
vote
1answer
78 views

How can I make a custom controller for a Joomla based api?

For my latest project I need an api that responds to a 'POST' request by returning json text that depends on the content of the 'POST'. I have made a version of this in loopback, however I can't think ...
1
vote
1answer
102 views

Does Joomla CMS or Joomla Framework provide any Class for making POST request to an external API?

I came across: the documentation for Joomla's HTTP client class and joomla/http in packagist Are they the same thing? Are these capable of sending POST requests to an external API?
1
vote
1answer
244 views

Error! Could not find a Joomla! XML setup file in the package

I'm looking for an extension to serve my Joomla 1.5 websites contents as REST, after some search I've found https://extensions.joomla.org/extension/rest-api/ component, but there is no specification ...
1
vote
1answer
37 views

Where do I add php code to submit an HTML form?

I am new to Joomla, and so far, I used the basics to make a simple website. I decided to try out making a component, using JCB, that has a database of a list of items, and for each item, there is a ...
0
votes
2answers
735 views

Joomla 3 - JSON with modules

I am new to Joomla and facing a situation - I need to have a page with custom URL (/dashboard) which would return some data in JSON that external application will read. I have a Slideshow CK module, ...
0
votes
1answer
502 views

Integrating an existing API with PHP/mySQL to Joomla for inventory Management

I have implemented an API on my server with PHP/mySQL to create products, categories, orders etc.For the sake of testing i had been testing the whole system with Postman. At this stage of the project ...
0
votes
2answers
964 views

Making changes to a Joomla site via REST

Has the J! project got an official REST API that can be used to manage a running Joomla site? At this stage it looks like we will need to manage at least: articles, categories, tags and perhaps even a ...
0
votes
1answer
865 views

API to publish articles on Joomla [duplicate]

Does Joomla provide any kind of APIs to publish articles? I have Ruby on Rails application for content authoring and need to publish articles to different site which runs on Joomla
0
votes
0answers
18 views

Does on after save work with the API call?

I want to listen to when an article has been changed and then send a request to a webhook. If it was manually being entered then I could do an onAfterSave plugin. Will this work with an API call? ...
0
votes
0answers
20 views

Implementing CSRF protection with Techjoomla's API plugin

I am writing an API and I want it to check that the data that has been entered came from a valid user session on my website. The API uses Techjoomla's API Plugin. When I send a 'POST' request to my ...
0
votes
1answer
60 views

Retrieve Contacts from Components via REST API

is there any official REST API in Joomla? If yes I would like to retrieve Contacts from Components, do you have any advice on how to achieve it?
0
votes
1answer
80 views

Including Results from API Call in Joomla! Search Results

My organization uses Joomla! for its customer facing site. There is a database that I only have REST API access to. I'm trying to ping that API to include results from it alongside the normal Joomla! ...