|
| 1 | +# GENERIC_API |
| 2 | + |
| 3 | +  |
| 4 | + |
| 5 | +This document maintained manually. |
| 6 | + |
| 7 | +## Variable env vars |
| 8 | + |
| 9 | +To support a specific value for input parameter `apiName`, the environment variable `<API_NAME>_API_URL`, and optionally `<API_NAME>_AUTH_HEADER` and `<API_NAME>_AUTH_HEADER_VALUE` must be set, where `<API_NAME>` is the upper-snake-case version of the value provided for the `apiName` parameter. |
| 10 | + |
| 11 | +## Environment Variables |
| 12 | + |
| 13 | +| Required? | Name | Description | Type | |
| 14 | +| :-------: | :---------------------------: | :---------------------------------------------------: | :----: | |
| 15 | +| ✅ | {API_NAME}\_API_URL | The API URL to use for a given `apiUrl`. | string | |
| 16 | +| | {API_NAME}\_AUTH_HEADER | The header to pass the authentication credentials on. | string | |
| 17 | +| | {API_NAME}\_AUTH_HEADER_VALUE | The credentials to pass on the authentcation header. | string | |
| 18 | + |
| 19 | +--- |
| 20 | + |
| 21 | +## Data Provider Rate Limits |
| 22 | + |
| 23 | +| Name | Requests/credits per second | Requests/credits per minute | Requests/credits per hour | Note | |
| 24 | +| :-----: | :-------------------------: | :-------------------------: | :-----------------------: | :--: | |
| 25 | +| default | | 20 | | | |
| 26 | + |
| 27 | +--- |
| 28 | + |
| 29 | +## Input Parameters |
| 30 | + |
| 31 | +| Required? | Name | Description | Type | Options | Default | |
| 32 | +| :-------: | :------: | :-----------------: | :----: | :--------------------: | :-----: | |
| 33 | +| | endpoint | The endpoint to use | string | [http](#http-endpoint) | `http` | |
| 34 | + |
| 35 | +## Http Endpoint |
| 36 | + |
| 37 | +`http` is the only supported name for this endpoint. |
| 38 | + |
| 39 | +### Input Params |
| 40 | + |
| 41 | +| Required? | Name | Aliases | Description | Type | Options | Default | Depends On | Not Valid With | |
| 42 | +| :-------: | :------------------: | :-----: | :------------------------------------------------------------------------------------: | :----: | :-----: | :-----: | :--------: | :------------: | |
| 43 | +| ✅ | apiName | | Used as prefix for environment variables to find API config | string | | | | | |
| 44 | +| ✅ | dataPath | | The path to the field containing the data to return | string | | | | | |
| 45 | +| | ripcordPath | | The path to the ripcord field if expected | string | | | | | |
| 46 | +| | ripcordDisabledValue | | The value the ripcord field should have during normal operation, converted to a string | string | | `false` | | | |
| 47 | + |
| 48 | +### Example |
| 49 | + |
| 50 | +Request: |
| 51 | + |
| 52 | +```json |
| 53 | +{ |
| 54 | + "data": { |
| 55 | + "endpoint": "http", |
| 56 | + "apiName": "client-name", |
| 57 | + "dataPath": "PoR", |
| 58 | + "ripcordPath": "ripcord", |
| 59 | + "ripcordDisabledValue": "false" |
| 60 | + } |
| 61 | +} |
| 62 | +``` |
| 63 | + |
| 64 | +--- |
| 65 | + |
| 66 | +MIT License |
0 commit comments