Help in API endpoints

I want to integrate the CMS in the rails application
I want to implement the below changes

  1. Show the count of the number of changes in the course
  2. The current and previous changes