@voracityemail, thank you for looking at this. I am passing in items_per_page
and start_index
. Using your example, if I run:
curl -uMY_OWN_API_KEY: "https://api.company-information.service.gov.uk/company/04253605/filing-history?start_index=0"
it yields (edited):
{"filing_history_status":"filing-history-available", ... "items":[ ... ],"start_index":0}
which is what I would expect (the type of start_index
is number). However, if run:
curl -uMY_OWN_API_KEY: "https://api.company-information.service.gov.uk/company/04253605/filing-history?start_index=1"
it yields (edited):
{"items_per_page":25,"total_count":82,"items":[ ... ],"filing_history_status":"filing-history-available","start_index":"1"}
which is not what I would expect. The type of start_index
has changed to string.
I am trying to write Haskell bindings to the API. Haskell is a statically typed language and it complicates matters if the returned types are not consistent.