Expanding resources
Some resources, for example the course object or the participation object, have fields that can be expanded into a full object without requiring another request to the API. Without expansion, these fields contain only the ID of the linked object.
To expand fields of a resource, send the query parameter expand with the field names
to expand (comma-separated).
Examples:
- Course object:
- Expand the
instructorfield:?expand=instructor
- Expand the
- Participation object:
- Expand the
userfield:?expand=user - Expand the
userandcoursefields:?expand=user,course
- Expand the
Which fields are expandable per endpoint is shown by the expand parameter of the
respective endpoint in the API reference.