new discover(httpMethod, endpoint) → {Operation}
Discover `DHIS2` `api` `endpoint` `query parameters` and allowed `operators` for a given resource's endpoint.
Parameters:
Name | Type | Description |
---|---|---|
httpMethod |
string | The HTTP to inspect parameter usage for a given endpoint, e.g., `get`, `post`,`put`,`patch`,`delete` |
endpoint |
string | The path for a given endpoint. E.g. `/trackedEntityInstances` or `/dataValueSets` |
- Source:
Returns:
- Type
- Operation
Example
discover('post', '/trackedEntityInstances')