Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Discover available `DHIS2` `api` `endpoint` `query parameters` and allowed `operators` for a given resource's endpoint.
- * @public
- * @function
- * @param {string} httpMethod - The HTTP to inspect parameter usage for a given endpoint, e.g., `get`, `post`,`put`,`patch`,`delete`
- * @param {string} endpoint - The path for a given endpoint. E.g. `/trackedEntityInstances` or `/dataValueSets`
- * @returns {Promise<state>} state
- * @example <caption>Example getting a list of `parameters allowed` on a given `endpoint` for specific `http method`</caption>
- * discover('post', '/trackedEntityInstances')
- */
RAW Paste Data