-
Notifications
You must be signed in to change notification settings - Fork 1
Organizations
Organizations are entities that can recruit and browse Students. They have the ability to make a preference list of who they would like to interview.
The following routes are supported for performing operations on the Organization entity.
CreateOrganization POST /organization
GetOrganizationStudents GET /organization/students
GetCurrentOrganization GET /organization/current
AddStudent POST organization/addStudent
RemoveStudent POST /organization/removeStudent
SwitchStudents POST /organization/switchStudents
name string Name of Organization
studentIds List of(int64) List of Students the Organization is interested in recruiting. Order pertains to preference.
Note: to run in Postman, just take the information contained in the quotes of --data and paste in the body field.
Adds Companies to the database
xtern-matching.appspot.com/organization
curl -X POST xtern-matching.appspot.com/organization \
--data '[{"name": "Test Company"}]'None
Invalid Organization JSON formatting
Invalid structure for Datastore
Gets the Students in the wishlist for a particular organization
xtern-matching.appspot.com/organization/students
curl -X GET xtern-matching.appspot.com/organization/
--data '{"org" : 5066549580791808}'{"keys" : List of(int64 ), "students" : List of(Student)}
Missing or Invalid Id in request
Datastore ErrFieldMismatch if types do not agree of if data structure models differ
Gets the current Organization in according to Organization login credentials
xtern-matching.appspot.com/organization/current
curl -X GET xtern-matching.appspot.com/organization/currentOrganization JSON Representation
Missing Id in request
Datastore ErrFieldMismatch if types do not agree of if data structure models differ
Adds a student to a given Organization
xtern-matching.appspot.com/organization/addStudent
curl xtern-matching.appspot.com/organization/addStudent \
--data '{"studentId": 5733953138851840}'None
Error decoding body into map Datastore ErrFieldMismatch if types do not agree of if data structure models differ
Removes a Student from a given Organization
xtern-matching.appspot.com/organization/removeStudent
curl xtern-matching.appspot.com/organization/removeStudent \
--data '{"studentId": 5733953138851840}'None
Error decoding body into map
Datastore ErrFieldMismatch if types do not agree of if data structure models differ
Switches two students in a preference list in a given Organization
xtern-matching.appspot.com/organization/switchStudents
curl xtern-matching.appspot.com/organization/switchStudents \
--data '{"student1Id": 5733953138851840, "student2Id": 5733953138851841}'None
Error decoding body into map Datastore ErrFieldMismatch if types do not agree of if data structure models differ