Not sure how to pull extra info
-
I am creating a course catalog on a WordPress site using the Populi REST API
I have successfully pulled the information and styled my page (temporary styling)
But, the API documentation says that I can expand the information pulled and I need some of that extra information – specifically faculty and tuition schedules. I cannot figure it out.
The API Documentation reads: Some calls are expandable. That means, in the request, you can specify that you want additional information included in the response. For example calling/people/123will give you back basic information about the person with ID 123. However, calling/people/123with"expand": ["addresses", "phone_numbers", "tags"]in the JSON request body will cause that person’s addresses, phone numbers, and tags to be included in the response.
And, the expandable properties for the CatalogCourse route are as follows:
Expandable Properties- faculty
- corequisites
- course_equivalencies
- prerequisites
- programs
- department
- tuition_schedules
But, I am unsure how to amend the JSON request body to include the two additional parameters.
The page I need help with: [log in to see the link]
The topic ‘Not sure how to pull extra info’ is closed to new replies.