s00d/larecipe-code-viewer
最新稳定版本:2.1.2
Composer 安装命令:
composer require s00d/larecipe-code-viewer
包简介
A LaRecipe asset.
关键字:
README 文档
README
LaRecipe CodeSimples
Getting Started
- Install the package via composer.
composer require s00d/larecipe-code-viewer
- Use the provided VueJs component:
<larecipe-code-viewer url="/api/v1/users"></larecipe-code-viewer>
- Customize your component via props:
| Prop Name | Description | Data Type | Required | Default Value |
|---|---|---|---|---|
| baseUrl | Defines the base URL for the requests. | String | Optional | '' |
| url | Defines the endpoint URL for the request. | String | Required | N/A |
| method | Defines the HTTP method for the request. | String | Optional | 'GET' |
| cookies | Defines the cookies to be sent with the request. | Array | Optional | [] |
| header | Defines the headers to be sent with the request. | Array | Optional | [] |
| queryString | Defines the query string parameters to be sent with the request. | Array | Optional | [] |
| path | Defines the path parameters to be sent with the request. | Array | Optional | [] |
| postData | Defines the data to be sent with the request. | Array | Optional | [] |
| configs | Defines the configuration options for generating code snippets for the request. | Array | Optional | [ { snippet: 'shell', libraries: { cURL: 'curl', HTTPie: 'httpie', Wget: 'wget' } }, ... ] (an array of objects containing snippet and libraries keys) |
License
This library is licensed under the MIT License - see the LICENSE.md file for details.
统计信息
- 总下载量: 99
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-06-20
