Get all items in a collection with REST API

I’m an Omeka newbie. How can I use the REST API to get all items in a collection?

I can get one item via the ID using …/api/items/X where X is the ID of the item.

I’m looking for something similar that will return a list of items in a collection so I can get the IDs of the items in the collection.

The items list request accepts a collection GET parameter.

api/items?collection=<id>

Thank you. That is exactly what I need. I appreciate the link too!