From 6bf79c033f879c924510f44bdda84a1a244fb28b Mon Sep 17 00:00:00 2001 From: Humair K Date: Fri, 15 Jul 2016 22:27:29 -0400 Subject: Added more request info --- server_info.txt | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/server_info.txt b/server_info.txt index 9cb939d..cb76198 100644 --- a/server_info.txt +++ b/server_info.txt @@ -10,6 +10,7 @@ admin, likewise for users. All visitor requests are requests that everyone that visits the website can make. Assume content/data-types are json format (they are omitted). +Standard serves for styles/images/script files are omitted. ******************************** ADMIN ONLY ************************************ N/A @@ -125,20 +126,26 @@ Url: '/exam' Data: examTitle = { courseCode: 'csc148', termOffered: 'Fall', - dateOffered: 'June/2014', + dateOffered: 'June2014', campus: 'St.George', } On Success: Return response such that: response = { - courseCode: - instructors: - uploadDate: - - - + courseCode: 'csc148' + instructors: 'Paul Grieves and Danny Heap', + uploadDate: '2014-01-26' + pageCouont: 22 + questionCount: 10 + questions: {question1, question2,...}, + path: '/exams/stgeorge/2014/fall/csc148.png' } -Notes: +Where each questionN is a question object such that: +questionN = { + questionNumber: 1, + solutionCount: 2, + commentCount: 6 +} -------------------------------------------------------------------------------- QUESTION - SOLUTIONS - PAGE -- cgit v1.2.3