Closed csphang closed 5 years ago
I posted metadata to these widgets:
95c2c559-ca78-4b7a-b18b-7b2bca14ce83
e53e541c-92cd-4b00-9aa7-2c7bb36d4697
ac38fdbd-fdb1-4d8e-9109-674013fb51a2
2083a1bc-440d-43fe-8b50-ff9918a37c57
31f78466-fc0b-42f9-a7ae-bea8559740d8
0734ba0a-3a6c-4388-aa4a-5871791b1d1f
16ff6282-8ceb-4055-938a-43726a62b205
5d696f96-e6c7-4323-8bda-4c99cd6b0cb4
1b84364d-0efd-4d60-81ef-870f7d13ee7b
It looks like there are several ways to pull the metadata:
This calls returns the widget + metadata in all languages:
These call returns just the metadata without the widget and you can add a filter by language.
Unfortunately, this call does not seem to work so it looks you have to include the dataset ID in the query if you want to retrieve just the metadata.
More Documentation available here: https://resource-watch.github.io/doc-api/index-rw.html
@KaylaKremer
A few questions / comments here to note:
1) Noticed we are using the url: https://production-api.globalforestwatch.org/v1/dataset/a97036a8-5526-4b85-8ffb-9ee2cdd9b34a/widget/95c2c559-ca78-4b7a-b18b-7b2bca14ce83/metadata?language=en. Will we need to add the datasetID to our configurations?
2) Let's also make sure this feature, and the custom report in general work with some other builds that include custom country analysis (i.e: Ethiopia, Georgia, Liberia). Some custom country analysis might not have a description in the API so in this case we should make the widget still loads but does not show the description underneath.
Use metadata endpoint -- Richard to post the metadata