-
Notifications
You must be signed in to change notification settings - Fork 84
Client Server API Spec
Stephen Martinis edited this page Jun 8, 2014
·
1 revision
These are the 3 main resources:
- Assignments
- Can have submissions -- BOOL
- Name -- String(20)
- Due date? -- DATE
- Submissions
- Uploaded date? -- DATE
- Number? -- INT(?)
- Assignment - Foreign Key
- Users
- Calnet Email -- String(256)
- Nickname? -- String(30)
- Login -- String(20)
- Role -- INT
Here are the URL paths I was thinking of
In general, there will be an api, and then a public facing HTML website that will render something nice. We can make the API first, and then make pretty interfaces later.
/api/user/
-- CRUD on this
/api/assignment/<id>/submission/
-- CRUD on this
To upload a new submission, use this URL:
POST /api/assignment/<id>/submission/
/api/assignment/
-- CRUD on this