-
Notifications
You must be signed in to change notification settings - Fork 1
POST Student
Julien Lesaffre edited this page Mar 3, 2019
·
5 revisions
Create a new student
POST
/student/{phone}/{firstName}/{lastName}/{email}/{password}/{userId}/{id}/{academicYear}/{major}/{minor}
-
phone
- phone number of the student -
firstName
- first name of the student -
lastName
- last name of the student -
email
- email of the student -
password
- password of the student -
userId
- unique ID of the student needed to access the database -
id
- student personal ID -
academicYear
- academic Year of the student (U0, U1, U2, U3 ...) -
major
- faculty/major of the student -
minor
- minor of the student
A JSON array of message header maps, containing the following fields:
-
phone
- phone number of the student -
firstName
- first name of the student -
lastName
- last name of the student -
email
- email of the student -
password
- password of the student -
userId
- unique ID of the student needed to access the database -
id
- student personal ID -
academicYear
- academic Year of the student (U0, U1, U2, U3 ...) -
major
- major of the student -
minor
- minor of the student -
administrator
- a null administrator -
faculty
- major of the student -
coopId
- an array of coopId empty.
Request: POST
http://localhost:8080/student/438/TestStudentFirstName/TestStudentLastName/testing.student@mail.mcgill.ca/password/-1/260/U1/Software/NA
Success Response:
-
Code: 200
- Content:
{
"phone":438,
"firstName":"TestStudentFirstName",
"lastName":"TestStudentLastName",
"email":"testing.student@mail.mcgill.ca",
"password":"password",
"userId":-1,"id":260,
"academicYear":"U1",
"major":"Software",
"minor":"NA",
"faculty":"Engineering",
"coopId":[],
"administrator:{ ... },
}
1.1 Requirements Model
1.2 Domain Model
1.3 Deliverable 1 Report
2.1 RESTful Service Endpoints
2.2 Software Quality Assurance
2.3 Deliverable 2 Report
3.1 Architecture Model
3.2 Deliverable 3 Report
4.0 Before Anything
4.1 User Documentation
4.2 User Experience
4.3 Software Testing Update
4.4 Android App Instructions
4.5 Deliverable 4 Report