Can you explain me why most of the list methods return an array object.
E.g Environment, Projects, Configs except Secrets which returns an string object
Is it possible to have to the Secret List return and array of objects?
Regards
Mike
Hi @MikevdBerge!
With that particular endpoint, the result returns an object to make it easier to work with (e.g., secrets["SOMETHING"]
) rather than having to search the array for the secret you’re looking for. Granted, there are some situations where this behavior makes it a little less wieldy to use than an array. I ran this by our engineering team and the inconsistency is definitely something we’ll consider changing in the next iteration of our API. For now, it’s unlikely to change though.
Regards,
-Joel