Discussions
time-off API does not return metadata
over 2 years ago by Alexander Schwinges
Hello, I am a bit confused. I am building a wrapper for the API and in some cases the result returns no metadata, like so:
{'success': True,
'data': [{'type': 'TimeOffPeriod',
'attributes': {'id': xxxxx ...
The correct response would be the following:
{'success': True,
'metadata': {'total_elements': 16, 'current_page': 1, 'total_pages': 1},
'data': [{'type': 'TimeOffPeriod',
'attributes': {'id': xxxxx ...
Which I get from the same call. It's either a bug on your side or on mine. But could you clarify in which cases NO metadata is returned? With this info I could check for errors more effectively