Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/s00d/larecipecodeviewer


https://github.com/s00d/larecipecodeviewer

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        




LaRecipe CodeSimples

## Getting Started

1. Install the package via composer.

```bash
composer require s00d/larecipe-code-viewer
```

2. Use the provided VueJs component:

```html

```

3. 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](LICENSE) file for details.