ONSdigital / dp-find-insights-poc-api

Find Insights Proof of Concept
MIT License
1 stars 0 forks source link

add optional filtertotals bool query param to metadata endpoint #167

Closed VivianAllen closed 2 years ago

VivianAllen commented 2 years ago

What

Add filtertotals boolean query parameter that, if supplied as true, will filter out the total category from the 'catgories' array in the json response for each table, and include it as a seperate 'total' object.

This change needed to allow easier consumption of metadata by census atlas web app.

How to review

Read the code, start locally with make debug and check output, run tests in metadata_test.go

Who can review

Anyone