Description Usage Arguments Value Examples
View source: R/build_endpoint.R
This function parse DHIS2 API endpoint parameters into a list object.
| 1 2 3 4 5 6 7 8 | 
| endpoint | A DHIS2 resource or on an API endpoint link, for example 'dataElements' or 'api/dataElements'. | 
| id | The unique identifier of an object in the endpoint, a character string of size 11. | 
| ref | An endpoint reference, a character string. | 
| ref_id | The unique identifier of an object in the referenced endpoint, a character string of size 11. | 
| version | A version of the web API. | 
| ... | Additional parameters passed to the  | 
An S3 object of class 'api_params'.
| 1 2 3 4 5 6 | # default endpoint endpoint
endpoint_params <- parse_endpoint()
endpoint_params
# endpoint params with a DHIS2 query
endpoint_params <- parse_endpoint(endpoint = "dataElements", field = c("name", "code", "id"))
endpoint_params
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.