goez/apib-unit
最新稳定版本:2.0.0
Composer 安装命令:
composer require goez/apib-unit
包简介
Unit Test Helper for API-Blueprint
README 文档
README
Installation
- Install Drafter.
- Add package to composer:
$ composer require goez/apib-unit --dev
Usage
// Parse API-Blueprint document, and get the endpoints. $endpoints = (new Apib('./example.apib'))->getEndpoints(); // Get first endpoints $endpoint = $endpoints[0]; // Get first example of the endpoint $example = $endpoint->getExamples()[0]; // Get request of example $request = $example->getRequests()[0]; // Get response of example $response = $example->getResponse()[0]; // Get JSON Schema of response $schema = $response->getSchema();
License
MIT
统计信息
- 总下载量: 13.28k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-07