Class: discover

Adaptor.discover(httpMethod, endpoint) → {Operation}

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

a list of parameters allowed on a given endpoint for specific http method

discover('post', '/trackedEntityInstances')