Olivier Massot 4af657ad76 add redirection from www. to domain on custom domain setting před 11 měsíci
..
Classes 4af657ad76 add redirection from www. to domain on custom domain setting před 11 měsíci
Configuration aa120e160e fix api route před 1 rokem
Resources 700668ee05 implement the icon API před 1 rokem
templates f039829bb3 fix some docs and refactor the scan / status part commands před 4 roky
Readme.md 17ddc87377 update doc on custom routes with new urls před 1 rokem
composer.json 6a67351ba3 fix the dependencies to be coherent před 1 rokem
ext_emconf.php 4ae6fdd622 apply rector recommandations před 2 roky
ext_tables.sql 00c103698e add the non-mandatory type to ot_page_type values před 1 rokem

Readme.md

OtAdmin

Admin-commands for managing the Typo3 instance. This extension provides commands available by the API, CLI, or a dedicated admin-only BE module

Extension key ot_admin
Vendor Opentalent
Nom OtAdmin

CLI

Pour exécuter une commande depuis la console (dans le cas d'une installation Typo3 9.5, en mode composer, et avec php fpm7.4) :

php7.4 /var/www/typo3/vendor/bin/typo3 [command]

Ou, si le script 'cli' a été ajouté lors de l'installation, ce qui devrait être le cas des installations opentalent :

sh /var/www/typo3/cli [command]

La liste des commandes fournies par cette extension peut être obtenue avec :

php7.4 vendor/bin/typo3 list ot

A propos de l'implémentation de nouvelles commandes : https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/CommandControllers/Index.html

HTTP API

La majorité des commandes peuvent aussi être exécutées via une requête HTTP, **à la condition que cette requête émane d'une adresse ip autorisée.

Les adresses IP autorisées sont :

/^127\.0\.0\.[0-1]$/
/^localhost$/
/^10\.8\.0\.[0-255]$/

Les commandes disponibles sont :

site/create Create a new organization <typo3_host>/typo3/otadmin/site/create?organization-id=<organization_id>
site/update Update an organization <typo3_host>/typo3/otadmin/site/update?organization-id=<organization_id>
site/delete Soft-delete an organization <typo3_host>/typo3/otadmin/site/delete?organization-id=<organization_id>
site/undelete Restore a soft-deleted organization <typo3_host>/typo3/otadmin/site/undelete?organization-id=<organization_id>
site/clear-cache Clear the website's cache <typo3_host>/typo3/otadmin/site/clear-cache?organization-id=<organization_id>
site/status Get the current status of the website <typo3_host>/typo3/otadmin/site/status?organization-id=<organization_id>[&full=1]
scan Scan the whole Typo3 DB <typo3_host>/typo3/otadmin/scan[?full=1]