Skip to content

SouthernAdventistUniversity/modern-campus-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

modern-campus-api

Scripts for testing or working with the Modern Campus CMS API

Calendar: Pending Approval Events

Script that fetches pending approval events. Done as a proxy since auth is required for MC API. All Events endpoint is cached every 30 minutes.

Endpoints

  • All Events: /events
  • Purge All Events Cache: /events?purge
  • Date Range: /events?start={date}&end={date} - Date in YYYY-MM-DD format
  • Single Event: /events/{event-id}

Production Setup

  • Create cache directory inside cloned repo. Set group to www-data and permissions to 775
  • Duplicate omni_api.config.example to omni_api.config, place username/password in file, and move to configs folder
  • May have to set location rewrite rule in NGINX to pass paramaters to script

Local Dev

  • Create cache directory inside cloned repo. Set group to www-data and permissions to 775
  • Duplicate omni_api.config.example to omni_api.config.local and place username/password in file
  • Uncomment DEV config require and comment out the PROD require in calendar-pending/index.php

About

Scripts for testing or working with the Modern Campus CMS API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages