code711/code711-api

An API for accessing TYPO3 data

Installs: 406

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

1.0.6 2023-04-05 09:48 UTC

This package is auto-updated.

Last update: 2023-05-05 10:06:19 UTC


README

We published an extension to retrieve the current TYPO3 release of a remote project with a simple link like http://example.com/api/v1/version.

The extensions implements a simple REST API using the micro framework slim. Thanks to B13 and extension b13/slimphp-bridge.

  1. Get the extension: https://packagist.org/packages/code711/code711-api

  2. Add config: In sites/[site]/config.yaml add:

imports:
- resource: EXT:code711_api/Configuration/Routes/Api.yaml
  1. Add credentials: We use basic authentication to prevent open acces to the current release for security reasons. The credentials could be stored in .env file in project root.
REST_API_USER=XXX
REST_API_PW=XXX
  1. Flush cache

  2. Test For testing REST API you can use the Postman REST Client: https://www.postman.com/product/rest-client/