How can I return only IDs from the `posts` REST endpoint?

How can I return only IDs from the `posts` REST endpoint?