|
1 |
| -[](https://www.npmjs.com/package/@api-components/api-endpoint-documentation) |
2 |
| - |
3 |
| -[](https://travis-ci.org/advanced-rest-client/api-endpoint-documentation) |
| 1 | +# api-endpoint-documentation |
4 | 2 |
|
5 |
| -[](https://www.webcomponents.org/element/advanced-rest-client/api-endpoint-documentation) |
| 3 | +A component to generate documentation for an API resource from AMF model. |
6 | 4 |
|
7 |
| -## <api-endpoint-documentation> |
| 5 | +[](https://github.com/advanced-rest-client/api-endpoint-documentation/actions/workflows/deployment.yml) |
8 | 6 |
|
9 |
| -A component to generate documentation for an API resource from AMF model. |
| 7 | +[](https://www.npmjs.com/package/@api-components/api-endpoint-documentation) |
10 | 8 |
|
11 | 9 | ## Version compatibility
|
12 | 10 |
|
13 | 11 | This version only works with AMF model version 2 (AMF parser >= 4.0.0).
|
14 | 12 | For compatibility with previous model version use `3.x.x` version of the component.
|
15 | 13 |
|
| 14 | +## Styling |
| 15 | + |
| 16 | +`<api-endpoint-documentation>` provides the following custom properties and mixins for styling: |
| 17 | + |
| 18 | +Custom property | Description | Default |
| 19 | +----------------|-------------|---------- |
| 20 | +`--arc-font-headline-color` | Color of the method title | `` |
| 21 | +`--arc-font-headline-font-size` | Font size of the method title | `` |
| 22 | +`--arc-font-headline-letter-spacing` | Letter spacing of the method title | `` |
| 23 | +`--arc-font-headline-line-height` | Line height of the method title | `` |
| 24 | +`--arc-font-headline-narrow-font-size` | Font size of the method title in mobile-friendly view | `` |
| 25 | +`--arc-font-title-color` | Color of the overview section title | `` |
| 26 | +`--arc-font-title-font-size` | Font size of the overview section title | `` |
| 27 | +`--arc-font-title-line-height` | Line height of the overview section title | `` |
| 28 | +`--arc-font-title-narrow-font-size` | Font size of the overview section title in mobile-friendly view | `` |
| 29 | +`--arc-font-subhead-color` | Color of the collapsible section title | `` |
| 30 | +`--arc-font-subhead-font-size` | Font size of the collapsible section title | `` |
| 31 | +`--arc-font-subhead-line-height` | Line height of the collapsible section title | `` |
| 32 | +`--arc-font-subhead-narrow-font-size` | Font size of the collapsible section title in mobile-friendly view | `` |
| 33 | +`--api-endpoint-documentation-description-color` | | `rgba(0, 0, 0, 0.74)` |
| 34 | +`--api-endpoint-documentation-bottom-navigation-color` | | `#000` |
| 35 | +`--api-endpoint-documentation-method-doc-border-top-color` | | `#E5E5E5` |
| 36 | +`--api-endpoint-documentation-method-doc-border-top-style` | | `dashed` |
| 37 | +`--api-endpoint-documentation-tryit-width` | | `40%` |
| 38 | +`--api-endpoint-documentation-tryit-max-width` | | `` |
| 39 | +`--api-endpoint-documentation-tryit-background-color` | | `#ECEFF1` |
| 40 | +`--api-endpoint-documentation-tryit-panels-background-color` | | `#fff` |
| 41 | +`--api-endpoint-documentation-tryit-panels-border-radius` | | `3px` |
| 42 | +`--api-endpoint-documentation-tryit-panels-border-color` | | `#EEEEEE` |
| 43 | +`--api-endpoint-documentation-tryit-panels-border-style` | | `solid` |
| 44 | +`--api-endpoint-documentation-tryit-title-border-bottom-color` | | `#bac6cb` |
| 45 | +`--api-endpoint-documentation-tryit-title-border-bottom-style` | | `solid` |
| 46 | +`--no-info-message-font-style` | | `italic` |
| 47 | +`--no-info-message-font-size` | | `16px` |
| 48 | +`--no-info-message-color` | | `rgba(0, 0, 0, 0.74)` |
| 49 | + |
16 | 50 | ## Usage
|
17 | 51 |
|
18 | 52 | ### Installation
|
|
0 commit comments