libero/api-problem-bundle
最新稳定版本:v0.2.0
Composer 安装命令:
composer require libero/api-problem-bundle
包简介
Implements the Libero API error standard
README 文档
README
This is a Symfony bundle implements the Libero API error standard (based on Problem Details for HTTP APIs).
Getting started
Using Composer you can add the bundle as a dependency:
composer require libero/api-problem-bundle
If you're not using Symfony Flex, you'll need to enable the bundle in your application.
All exceptions are caught and turned into a application/problem+xml response.
To modify the contents of the response, you can listen for the libero.api_problem.create event.
Any remaining exceptions will be caught; unless the exception is an instance of Symfony's HttpExceptionInterface, the response will be 500 Internal Server Error.
Getting help
- Report a bug or request a feature on GitHub.
- Ask a question on the Libero Community Slack.
- Read the code of conduct.
统计信息
- 总下载量: 1.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2018-10-24