定制 code711/code711-api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

code711/code711-api

最新稳定版本:1.0.6

Composer 安装命令:

composer require code711/code711-api

包简介

An API for accessing TYPO3 data

README 文档

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 extension 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 access 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/

Special Environments

Some environments (e.g. Mittwald) need additional configuration to work with the REST API behind a basic authentication. When using CGI/FastCGI mode, it can happen that the Authorization header is not passed to PHP by default.

Therefore, you need to add the following line to your .htaccess file:

SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0

统计信息

  • 总下载量: 2.23k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-23