When querying a specific instance, returned is an object with 3 keys: metadata, resultSize, and results. However when querying an instance, we only would expect a certain result. However, resultSize is equal to the number of keys in the single result object returned.
The better solution is to always set resultSize to 1 if not returning a list, or otherwise just leave it out of the response.
Description
When querying a specific instance, returned is an object with 3 keys:
metadata
,resultSize
, andresults
. However when querying an instance, we only would expect a certain result. However,resultSize
is equal to the number of keys in the single result object returned.The better solution is to always set
resultSize
to 1 if not returning a list, or otherwise just leave it out of the response.Example
http://api.pma2020.org/v1/texts/6EA0At85