Coder Social home page Coder Social logo

alexandreelise / j4x-api-examples Goto Github PK

View Code? Open in Web Editor NEW
36.0 6.0 1.0 109 KB

Some Joomla! 4.x Web Services Api Examples and Experiments to raise the level of awareness of the huge potiental of Joomla! 4.x Web Services.

Home Page: https://documenter.getpostman.com/view/7443864/2s9YywfKez#intro

License: GNU Affero General Public License v3.0

PHP 100.00%
api-rest example-code experiments joomla lab php webservices automation-tool csv csv-parser

j4x-api-examples's Introduction

Saluuuuute Super Joomlers!

Tip

Don't let technical problems KILL your AMBITIONS.

Note

If it is useful to you. Add a star to the corresponding repository and share it to someone that it might be useful too. Knowledge should flow like water through time and space. Don't break the flow...

API Tech Blog Mainly About Joomla Web Services

Repositories you loved

  1. 100+ Endpoints of Joomla Web Services Collection For Postman : Joomla 4.x/5.x/6.x Web Services Postman Collection
  2. Joomla Web Services ready to use examples : Joomla Web Services / API examples
  3. Joomla with FrankenPHP : Joomla on App Server written in Go

Latest work in progress

  • routefinder : Fetch Joomla core repo, extract Web Services routes, generate OpenAPI.yaml

POC(Proof of Concept)

Experimental projects


VIDEO

Video on Api Adept channel with Mr Alexandre J-S William ELISÉ presenting Joomla! Api WITHOUT Super User : Least Privilege Principle

Video on Api Adept channel with Mr Alexandre J-S William ELISÉ presenting Joomla! Api WITHOUT Super User : Least Privilege Principle


j4x-api-examples's People

Contributors

alexandreelise avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

pe7er

j4x-api-examples's Issues

Error message with the add raw php script

The API connection seems ok, but I get this
{"errors":[{"title":"Field required: Title\nField required: Category"}]} {"errors":[{"title":"Field required: Title\nField required: Category"}]} {"errors":[{"title":"Field required: Title\nField required: Category"}]} {"errors":[{"title":"Field required: Title\nField required: Category"}]} {"errors":[{"title":"Field required: Title\nField required: Category"}]} {"errors":[{"title":"Field required: Title\nField required: Category"}]} {"errors":[{"title":"Field required: Title\nField required: Category"}]}

Cannot use object of type stdClass as array

Good day!
Thanks for this sample API.
I'm trying to use it and I get a message: "Cannot use object of type stdClass as array"

I changed the error output code to this: echo $e->GetMessage() . ' - ' . $e->getline() . PHP_EOL; and I see that the error in line 229: $storage[$DataKey] = ['mightExists' => $decodedJsonOutput->errors[0]->code === 400, 'decodedDataString' => $decodedDataString];

At the same time, the rest of the code works correctly and the data in Joomla is updated, although I haven't checked all the code options yet :-)

$storage[$dataKey] = ['mightExists' => $decodedJsonOutput->errors[0]->code === 400, 'decodedDataString' => $decodedDataString];

Joomla 4.2.8, PHP Version 8.1.11

idea how to set article layout via api?

followed your code and seems to work nicely.

I need to set the layout for imported articles too. any idea how to achieve this? Couldn't find any hint at the api documentation though.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.