Commit Graph

31 Commits

Author SHA1 Message Date
james
19e146547f Fix api registration fields when roles ar epassed in
roles can be passed in as array of ids or array of types
2010-10-25 23:12:35 +00:00
james
a5887bdf96 Oops fix the docs 2010-10-22 15:12:45 +00:00
james
a035a6f8e3 Add registration/fields API
Fix $roles array use colliding with global $roles array ($roles should never be used anywhere! its a master list of all of the roles set in the bootstrap!)
2010-10-22 15:06:49 +00:00
jacob
b9bcb127a6 Updated these tables to include the conference id:
award_awards
	award_prizes
	award_types
	award_awards_projectcategories
	award_awards_projectdivisions
	winners
	students
	projects
	registrations

Also modified all code that uses those tables to work with the conference id
instead of the year, with the exception of these files:
	communication.inc.php
	reports_students.inc.php
	rerollprizes.php
	remote.php
The "rerollprizes.php" probably doesn't matter, having been a one-time usage
file anyway.  The others will need to be modified in the future to correctly
use the conference id instead of the year.
2010-10-20 21:58:26 +00:00
james
f225787e39 Properly update the session roles from the API side
Allow (u) to be empty if we dont have it, we can get it from the session users_id
2010-10-14 20:38:48 +00:00
jacob
607834bc0e updating _SESSION when user roles are modified 2010-10-08 20:28:56 +00:00
james
fce116316e Implement the role/* functions 2010-10-06 21:01:17 +00:00
james
e590c94690 Fix api for categories (projectcategories_load wouldnt have ever worked!) 2010-10-05 20:24:43 +00:00
james
4f42407073 migrate categories/divisions/subdivisions from FAIRYEAR to conferences_id
rename API call /config to /config/variables
update API with /config members for divisions/subdivisions/categories
2010-10-05 19:43:30 +00:00
james
898bdaacfc Oops put account/edit APIDOCS back in 2010-10-01 21:06:57 +00:00
james
f0b362eff7 Add account/view api 2010-10-01 21:04:05 +00:00
james
a92544bbea Implement user/edit
Remove saving some stuff from user_save
2010-10-01 19:42:52 +00:00
james
895bcc36e2 Add user/view API
Change user_load() to explicitly load specific values instead of all values, as there's now some fields that need to be deleted but we cant delete them yet...
2010-10-01 19:28:26 +00:00
james
e0eef7effa Add /api/config 2010-10-01 17:13:48 +00:00
jacob
88055eb6a6 oops - committed with some code remarked 2010-09-30 14:41:08 +00:00
jacob
637a35ca60 Separated (un)registering teams for events into schedule.inc.php and added it to the api 2010-09-29 21:23:54 +00:00
james
8b2de95005 Be a bit smarter with "notimplemented", add API impelmentation status, and basic details to the apidocs page 2010-09-28 20:37:44 +00:00
james
b5ed7c174f use 'events' and 'locations' instead of 'list' in the return object 2010-09-28 20:24:32 +00:00
jacob
0a02525d14 Added some API functionality used in schoolschedule.php 2010-09-28 20:09:31 +00:00
james
eb3c8f0d77 Add not implemented API comments of what still needs to get done 2010-09-28 19:48:03 +00:00
james
0f9588cdf4 Add APIDOC for the rest of the existing api 2010-09-27 20:45:57 +00:00
james
08340544d9 Add api documentation 2010-09-27 20:38:49 +00:00
james
55bdb2aec5 Add account/create API
Start adding some basic APIDOC comments to be parsed out into documentation later
2010-09-27 19:52:43 +00:00
james
3913bb397d List all conferences with status in the api call, instead of just the running ones 2010-09-07 19:59:37 +00:00
james
146f557759 Add science olympics teams api to testapi page 2010-09-02 19:01:49 +00:00
james
959843d4c4 Add a simple API test page for checking some api calls
Update /api/dates to use current conference id if one isnt specificed
2010-09-02 18:53:48 +00:00
james
6963b7104b switch conference API 2010-09-02 17:38:13 +00:00
james
d01a3088b7 dd api for managing science olympics teams 2010-08-31 20:50:11 +00:00
james
de564f3c55 More user stuff to get things workinga gain
Add a API module for science olympics
2010-08-31 20:12:41 +00:00
james
4bf2897f18 Add changes for API Authenication and force API to use SSL 2010-08-24 16:04:12 +00:00
james
57f7bd5212 Add conferences and dates api 2010-07-28 21:49:58 +00:00