add REST documentation for mediacore module

We should recycle from the `api.js` file for this as well